From: bwv549 Date: 2007-08-31T04:00:10+09:00 Subject: Re: Add a method to a class at runtime? Note to self, class_eval or module_eval should work # from ri class_eval: class Thing end a = %q{def hello() "Hello there!" end} Thing.module_eval(a) puts Thing.new.hello() Thing.module_eval("invalid code", "dummy", 123)