From: Tarek Other Date: 2008-11-13T07:59:53+09:00 Subject: Re: Issue with block and getting to local variables Todd Benson wrote: > On Wed, Nov 12, 2008 at 3:43 PM, Tarek Other > 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/.