Ruby on Rails Monday, April 30, 2012

id and class are built-in ruby methods that are present on all object instances.


Rails uses them in a different manner than the default Ruby implementation.

They are undefined so that they can be picked up by the method_missing method.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/KJ4aGP2TFHQJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment