From: Mat Schaffer Date: 2006-05-26T22:58:35+09:00 Subject: Re: Binding Blocks? (in Tk, for example) On May 26, 2006, at 9:52 AM, ts wrote: >>>>>> "M" == Mat Schaffer writes: > > M> Can you give a code example or documentation page? > > [code ommited] That example wasn't quite what I meant, but I found it myself. Incase anyone else was following and is interested, here's the sort of syntax I was curious about: class MyClass def initialize &block instance_eval &block end def foo puts "hi" end end MyClass.new { foo } Thanks for pointing me in the right direction, Guy. -Mat