Robert Walker wrote:

> String has no class method "to_date" yet it does have a "to_date" 
> instance method. However, Ruby itself has neither a class nor instance 
> method named "to_date" for it's String class.
> 
> The magic happens here:
> http://www.railsbrain.com/api/rails-2.2.2/doc/index.html?a=M001206&name=to_date

Thanks.  If I follow this correctly then what happens is that the String 
Class is opened inside the Rails libraries and the instance methods 
to_date etc. are slipped in.
-- 
Posted via http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to