From: "Florian Groß" Date: 2005-12-24T05:30:39+09:00 Subject: Re: How can I create a ruby class in runtime sayoyo@yahoo.com wrote: > in runtime, we want to create a class "child" inherited from "parent", > it is possible? Yup, it is: child = Class.new(parent) do def method(arg) ... end define_method(dynamic_name) do |arg| ... end # There's a gotcha, though: # Constant = 5 doesn't work as expected. Use this instead: const_set(:Constant, 5) end -- http://flgr.0x42.net/