On Apr 22, 9:33 am, Shaun Keller <[email protected]>
wrote:
> danfrost wrote:
> > Thanks - nice answer.
>
> > So, ".send" by-passes all private / protected restrictions?
>
> In 1.8, definitely. In 1.9...I think I read somewhere that it didn't any
> more. Don't quote me on that, though. If it's used in the rails plugins,
> that wouldn't really make sense.
1.9 was like that for a while (with a separate send! that still
ignored whether a method was private/protected) but that was
eventually removed.
Fred
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---