From: Robert Dober Date: 2008-05-07T07:52:42+09:00 Subject: Re: Where to put code for extending a class? On Tue, May 6, 2008 at 10:47 PM, Zoop Zoop wrote: > I want to extend the String class with a capitalize_each_word method > (http://donttrustthisguy.com/2005/12/31/ruby-extending-classes-and-method-chaining/) > What is the recommended place to put the code? > -- > Posted via http://www.ruby-forum.com/. > > I would clearly monkeypatch String itself. class String def cap_each..... HTH Robert -- http://ruby-smalltalk.blogspot.com/ --- Whereof one cannot speak, thereof one must be silent. Ludwig Wittgenstein