From: Brian Candler Date: 2003-08-02T22:15:50+09:00 Subject: Re: Anonymous, single instance class creation On Sat, Aug 02, 2003 at 10:03:09PM +0900, Nathaniel Talbott wrote: > > I also valuely remember that 1.8 might let you pass a block to 'def'. > > Really? I don't remember that... I was hallucinating, it's Class.new which can take a block. But it looks like this gives a funky new syntax: Foo = Class.new { define_method(:bar) { puts "Hello world" } } Foo.new.bar Regards, Brian.