From: Sebastian Hungerecker Date: 2008-11-13T18:01:15+09:00 Subject: Re: Issue with block and getting to local variables ara.t.howard wrote: > this is just how blocks work - they enclose the scope from which they   > were called No, they don't. They enclose the scope from where they were created. def foo(&block) bar = 5 block.call end will NOT make bar accessible within the block. You can't do that. Best you can do is block.call(binding) and then get the variables from the binding object using eval in the block, but don't do that. HTH, Sebastian -- NP: In Flames - Dark Signs Jabber: sepp2k@jabber.org ICQ: 205544826