From: Pit Capitain Date: 2004-07-03T05:51:32+09:00 Subject: Re: define_method to add a Class method? walter@mwsewall.com schrieb: > > I want to add a method to the class itself, and I want to be > able to do it to an anonymous class. c = Class.new do class << self define_method :m do p "m" end end end c.m # ==> "m" HTH Regards, Pit