From: Ryan Davis Date: 2009-11-16T05:02:17+09:00 Subject: Re: Traversing the contents of a proc (for a DSL) On Nov 15, 2009, at 09:32 , Kyle wrote: > Generally - no. A proc is compiled code, it doesn't remember its own source > code. There are libraries that provide some deeper introspection tools -- like > the ParseTree / Ruby2Ruby libraries. Also, there are several DSLs very simllar > to what you're talking about already -- check out Markaby: > > http://markaby.rubyforge.org/ agreed... except don't look at markaby. It is overly complicated and overly clevar (and slow as a result). Look at Ara's tagz. Excellent implementation.