From: "David A. Black" Date: 2008-09-13T19:47:55+09:00 Subject: Re: Is my method defined? Hi -- On Sat, 13 Sep 2008, Sebastian Hungerecker wrote: > Fredrik wrote: >> I will open my Ruby book and look into that send thing... > > send is quite simple actually: > send("foo") is the same as foo > send("foo", bar) is the same as foo(bar) > object.send("foo", bar) is the same as object.foo(bar) > That's basically it. Almost :-) >> c.send("x") => nil >> c.x NoMethodError: private method `x' called for # David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL Advancing with Rails January 19-22 Fort Lauderdale, FL * * Co-taught with Patrick Ewing! See http://www.rubypal.com for details and updates!