On Sat, Sep 24, 2005 at 04:41:40PM +0900, Robert Klemme wrote:

<snip>
 
> I don't see the advantange of this syntax over
> 
> def o.test_method() puts "test_method" end
> 
> Can you explain?

Well, I guess it lets you do something like:

name = "Robert"
o = OpenClass.new
o.test_method = %{ puts "Hello #{name}" }
o.test_method

Regards,
Doug