From: gga Date: 2007-02-20T18:05:15+09:00 Subject: Re: Deconstructor to close file On 19 feb, 21:21, Raymond O'connor wrote: > Thanks for everyone's help! I may end up just using the standard > logger. Do you know if there is an easy way to add methods to the > standard logger class without having to do .extend everytime I create an > instance of it? > > -- > Posted viahttp://www.ruby-forum.com/. Besides what SonOfLift answered regarding open classes, another way to extend a class in most OO languages is to create your own subclass using inheritance, like: class MyLogger < Log4R # add any additional methods here end This is probably slightly safer than messing with the original class, so it should be preferred when possible.