walter / mwsewall.com schrieb:
> <snip>
> 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