From: Florian Gilcher Date: 2009-11-16T05:33:36+09:00 Subject: Re: Traversing the contents of a proc (for a DSL) On Nov 15, 2009, at 4:32 PM, Ryan Davis wrote: > > 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. Markaby is also Ruby 1.8 only, though I can't figure out why. Some of the clevarness kind of fails to be portable. Regards, Florian