From: Gustav Paul Date: 2006-12-11T07:20:04+09:00 Subject: Re: Scope of block dblack@wobblini.net wrote: > Hi -- > > On Mon, 11 Dec 2006, Gustav Paul wrote: > >> The following seems to work: >> ######### >> class BlockTest >> def process(&block) >> @block=block >> end >> >> def myblock >> instance_eval{@block}.call > > No need for instance_eval there. @block already belongs to self, and > the instance_eval just resets self to self :-) > > > David > LOL! doh! :-]