From: Austin Ziegler Date: 2005-08-25T08:39:45+09:00 Subject: Re: Extending Code Cleanly On 8/24/05, David Brady wrote: > Austin Ziegler wrote: > >Sometimes, as in #to_foo, it may be appropriate, but that should > >*probably* be done with: > > > > require 'foo' > > require 'foo/string' > > > > > I *REALLY* like this idiom! > > require 'mymodule/standardmodule' # allow mymodule to make injections to > standardmodule. > > Nifty! Thanks. I didn't invent it, but it seems the *best* way to solve what I'd said re: extending cleanly. If Rails wanted to do this (as a library, not a framework), then it might be require 'activerecord/date/fixnum' or something like that. But that's just what *I* would do, and not what everyone would do. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca