From: Ron M Date: 2005-08-27T04:33:34+09:00 Subject: Re: Method behaves differently when called using #send calamitas@advalvas.be wrote: > On Fri, 26 Aug 2005, Ron M wrote: > >> Can anyone think of what I could look for so I >> can call y using send or where I should look for >> further information to understand why it's not working? > > > Maybe it has something to do with method_missing. I suspect object es > has a private method #y which requires one argument. This is the one > es.send(:y) calls (as it can call private methods). However when you > call the method as just es.y, it is not found and method_missing is > called which happens to handle y as a method with no arguments. > Ah yes!!! That seems to be the case. It also seems to be a reasonable workaround for me. >> es.send(:method_missing,:y) => 30.468257171342 >> Thanks!