From: Dave Burt Date: 2006-04-29T07:25:18+09:00 Subject: Re: from block to code (also: how to get the bindings of a block) chiaro scuro wrote: > I found an alternative way to get the bindings.. I posted about it here: > http://liquiddevelopment.blogspot.com/2006/04/way-of-meta-part-iv-hijacking-local.html > > > the DSL code looks like this: > > shopping_list "english breakfast" do > tomatoes = 2, :green > sausages = 3 > eggs = 2, :big > bacon = 4 > the end "The end" meaning "return the block's local variable binding" is a very interesting way to approach it. Steal the block's locals! Cool! Cheers, Dave