On 11/23/05, Jeff Cohen
<cohen.jeff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Apologies in advance for the newbie question...
>
> I''ve seen usage of a "send" method on ActiveRecord
objects but I''m not
> sure what it''s intending to do. For example, scaffolding will use
the
> .send method on the model object in the list template.
>
> I checked api.rubyonrails.com page but somehow didn''t find any
specifics
> about it.
>
> Can someone explain what it''s used for?
>
> Thanks!
#send is inherited from Object:
http://ruby-doc.org/core/classes/Object.html#M000998
These statements are equal:
@person.age
@person.send :age
@person.age = 5
@person.send :age=, 5
@person.set_age(5)
@person.send :set_age, 5
--
rick
http://techno-weenie.net