By the way it is possible to add methods to instances of objects in Ruby. Although that is not what's being done in your case. Rails is simply extending the Ruby String class to add the method to all instances of String.
Here is a nice blog about singleton methods in case you want to know more: http://pmade.com/articles/2008/ruby-singleton -- 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 -~----------~----~----~----~------~----~------~--~---

