Thanks - nice answer.

So, ".send" by-passes all private / protected restrictions?


On Apr 19, 9:28 pm, Phlip <[email protected]> wrote:
> danfrost wrote:
> > Could anyone tell me why you use .send when callling "include" in
> > rails plugins??
>
> > E.g.
> >   ActiveRecord::Base.send :include, SomeClass::ClassMethods
>
> Take it out and see.
>
> .include is protected or private or something. send() just says "shut up and 
> do
> exactly what I say, b----!"
>
> --
>    Phlip
>    http://flea.sourceforge.net/resume.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to