From: Daniel Berger Date: 2005-08-27T02:03:07+09:00 Subject: Re: Method behaves differently when called using #send Ron M wrote: > David A. Black wrote: > >>> >>>>> es.y >>> >>> => 30.468257171342 > > >>>>> es.send(:y) >>> >>> ArgumentError: wrong number of arguments (0 for 1) >>> from (irb):7:in `y' >>> from (irb):7 > > > >> I wonder whether it's YAML-related. The YAML library defines >> Kernel#y. I'm not sure why you'd get that error message from it >> though, unless maybe AR hooks into it in some way. I wouldn't think so. At least, my own experiments didn't reveal this to be an issue, but you never know. Just for kicks, does it make any difference if you use es.__send__(:y)? Otherwise, I recommend firing up the debugger and stepping into the method to see where it takes you. Regards, Dan