From: Robert Klemme Date: 2007-07-27T05:25:07+09:00 Subject: Re: Class variables and how to set them up only once. On 26.07.2007 21:30, Kyle Schmitt wrote: > I'm trying to share a File object with everything that inherits from > Superclass, for logging. > The other thought I had was to take the setupLogger out of initialize, > have a single dummy instance of SuperPage, and call setupLogger from > that class once. That seems even worse. > > I'm sure other people can think of more elegant ways of handling this, > and I'd sure like to hear their suggestions :) There is at least one logging package for Ruby (Log4R). I'd use that one instead of creating my own. Kind regards robert