From: Damjan Rems Date: 2008-05-07T16:56:48+09:00 Subject: Re: Where to put code for extending a class? Zoop Zoop wrote: > Phillip Gawlowski wrote: >> A: It makes it difficult to follow the conversation >> !: Why is top posting bad? > > Hehe, this took me a second to understand, but I got your clue. > Is in-between-posting ok? > >> | Do you mean adding the code directly to the original string.rb file? >> >> No. Any source file in your application / directory structure. as long >> as require can find it, you can use it. > > Ok, but where exactly is the recommended place to put code for > extensions like the one I want to do? Anywhere in your program flow. Usualy you have some kind of home grown library writen by yourself, which gets required into your application at start. There is a good place for it. by TheR -- Posted via http://www.ruby-forum.com/.