From: "David A. Black" Date: 2005-08-26T20:46:41+09:00 Subject: Re: Method behaves differently when called using #send Hi -- On Fri, 26 Aug 2005, Ron M wrote: > I'm having difficulty using #send to call methods in > some of my classes. In the example shown below, > I can call the method "y" directly with no problems, > but when I try to call it using send I get an > ArgumentError. > > >>> 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. David -- David A. Black dblack@wobblini.net