From: Christoph Date: 2002-09-20T05:41:58+09:00 Subject: Re: Is better to subclass or to add methods to an existing class? "Paul Brannan" wrote in .... > You can also create an anonymous subclass: > > class Foo > @@my_string = Class.new(String) > end Anonymous subclasses are pain to work with btw. - because of scoping problems you often have to use the evil string eval ... --- Beast = self (@temptation = Class.new String).class_eval <<-Body Beast = self def six_six_six; Beast end Body --- /Christoph