On Sat, 26 Nov 2005, Daniel Schierbeck wrote:

> Oh, sorry, I misunderstood you: You mean something like this:
> 
>   class Klass
>     def initialize
        # setup usual stuff, then:
>       yield self
>       finalize
>     end
> 
>     def finalize
>       # do something
        # like releasing resources, yes.
>     end
>   end
> 
> Sorry, I'm kinda groggy ;)

Not that groggy, that's exactly what I meant.
> 
> Cheers,
> Daniel
> 
        Hugh
>