From: Patrick Li Date: 2008-09-07T02:49:59+09:00 Subject: Re: Request for Block local methods, and Proc syntax Hi David, Mmm, I'm really not sure how it can be accomplished. I agree, yielding an object to a block is a rock solid approach. It's a technique that I love, and use everywhere. Which is actually, what led me to think about this: Everywhere in my code is stuff like this: # from my event listening system... listen do |listener| listener.listenTo(:playerKilledEvent) do ... end end # from my drawing system... engine.drawFrame do |drawer| drawer.drawRect(...) drawer.drawCircle(...) end # from my collision system... engine.detectCollision do |collider| @collided = collider.checkCollision(@myRect, @myCircle) end Which begs the question: Is there a better way? -Patrick -- Posted via http://www.ruby-forum.com/.