Todd Benson wrote:
> On Wed, Nov 12, 2008 at 3:43 PM, Tarek Other <cashew250 / yahoo.com> 
> wrote:
>>>  > function that is a ble to call a block and I want that block to have
>>> 2
>> would have to pass in. Is there any way to do what I want?
> x, y (and a, b) are objects.  They don't have to be integers.  They
> could be arrays, hashes, etc.
> 
> Todd

Yes I understand that. I dont want to have to do this because I dont 
want to have to pass any variables:

yield x,y

i.e.) I want to know if there is a way to call the block such that it 
knows or has access to all the local variables of the caller without 
having to pass those local variables in.
-- 
Posted via http://www.ruby-forum.com/.