Masaki Fukushima <fukusima / goto.info.waseda.ac.jp> writes:

> > the object created by Dave.new? I've tried instance_eval, but I don't
> > seem to be able to get it so work with a variable containing a block.
> 
> Following seems to work as you want.
> 
>        def initialize(&block)
>           instance_eval(&block)
>        end

Indeed it does! I misunderstood instance_eval, and thought you should
pass the block to it, not make the proc instance_eval's own block.

Many thanks


Dave