From: Eugene Scripnik Date: 2002-08-15T21:20:24+09:00 Subject: adding method to existing class I need to include some methods in class stored in some variable: some_class = Struct.new( 'SomeClass', 'some_field' ) blah = some_class.new( 'anything' ) Now I want object blah (and other objects of some_class) to respond to method some_method. I've tried to include module with my method but I don't like evaling: module Feature def some_method ... end end some_class.class_eval { include Feature } blah = some_class.new( 'anything' ) Now blah responds to some_method. Is there way to include methods without eval? -- Best regards, Eugene [team Enticla] mailto:Eugene.Scripnik@itgrp.net