On Wed, 19 Mar 2008 12:23:58 -0500, Mateusz Tybura wrote:

> [Note:  parts of this message were removed to make it a legal post.]
> 
> Try this code:
> class KK
>    def new
>         yield if block_given?
>         super
>    end
> end

This won't work, because it operates on an instance method named new.

--Ken

-- 
Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/