From: Robert Klemme Date: 2004-08-21T17:35:52+09:00 Subject: Re: anonymous first class modules "klaus schilling" <510046470588-0001@t-online.de> schrieb im Newsbeitrag news:16679.889.686384.815361@gargle.gargle.HOWL... > > does ruby have anonymous first-class modules? > > Klaus Schilling Do you mean: >> m = Module.new => # >> m.name => "" >> m.class_eval { def foo; puts "bar"; end } => nil >> o=Object.new => # >> o.foo NoMethodError: undefined method `foo' for # from (irb):10 from :0 >> o.extend m => # >> o.foo bar => nil >> Kind regards robert