From: Chris Pine Date: 2002-12-28T01:14:15+09:00 Subject: Re: viral arguments If I understand you (which I very well may not :), you are asking if you can execute a block in the context of the method you send the block into. Check out html/common.rb (comes standard with Ruby) which has html generation code. In the middle of HTML.def_element you'll see: buf = instance_eval(&block) It's that simple. (Mind you, it took me quite a while to figure out why my #$*!ing blocks weren't working properly! When I found out what was going on, I stopped using this library and wrote a quick-n-dirty one of my own. Now I just subclass.) Chris