From: Sean Chittenden Date: 2002-04-01T08:29:25+09:00 Subject: Re: Detecting class variables.... > > :46:in `initialize': uninitialized class variable > > @@httpd_combined_entry_re in Logs::Httpd::Combined::Entry (NameError) > > How about something like: > > class Thing > @@var = nil > def initialize > @@var ||= Regexp.new('...') > end > end That does the trick, thanks. -sc -- Sean Chittenden