From: Greg Weeks Date: 2007-11-09T04:57:34+09:00 Subject: standard, pretty, and flexible meta-methods? The following code makes the meta-method "def_foo" available to any class that inherits from Definer: class Definer def Definer.def_foo def foo 17 end end end # A TEST: class User < Definer def_foo end puts User.new.foo # prints 17 Is there a way to make meta-methods like "def_foo" available in class definitions without using inheritance? Is there a standard way? Is it pretty? (Or is it perhaps pointless?) -- Posted via http://www.ruby-forum.com/.