I'm writing a property driven ui and would like to do things like:

button = Button.new do
   caption = 'Click Me'
end

I've read that 2.0 will have this feature, i.e. Class.new will execute it's 
block argument in it's own context.  But how do I do it in 1.8?

Thanks much,
Mike