From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2003-01-17T05:42:56+09:00 Subject: Re: Reading the code passed inside a block? In article <7b561b93.0301161123.7b919add@posting.google.com>, Francis Hwang wrote: >Is it possible to read the code passed in a block, as, say, a String? >Or in any other way? That is, if I make a method call like: > >> reflector.superReflectiveMethod { |i| i >= 5 } > >is there any way I could get output like > >> You passed in this code: "i >= 5" > >Thanks in advance, > >Francis Check out NodeDump here: http://rubycentral.com/downloads/nodeDump.html Also check out the link on that page to Guy Decoux's ii. Phil -- "Or perhaps the truth is less interesting than the facts?" Amy Weiss (accusing theregister.co.uk of engaging in 'tabloid journalism') Senior VP, Communications Recording Industry Association of America