Dave Burt wrote:

> "MyClass do ..." looks like a syntax error to me.
> 
> How about a Class#| for this (think set union like Array#|)?
> 
> MyClass |= Class.new do
> ....
> 
> First-class methods would make implementation of something like this 
> convenient.

That would not work though as the block can not bind to the | operator.