Austin Ziegler
1/13/2005 9:58:00 PM
On Fri, 14 Jan 2005 06:05:19 +0900, Pete Elmore <pete@petta-tech.com> wrote:
> Is there a way to get Ruby to print the definition of a class or method,
> like 'see' in Forth? I think it would be very useful to be able
> (especially in irb) to see how a method in a running instance of Ruby is
> defined. Is this possible?
>
> Thanks in advance.
Not without some parsing of the text involved as it's being handled or
parsing the definition. The Ruby interpreter discards the text
definition of the method as soon as it's compiled.
-austin
--
Austin Ziegler * halostatue@gmail.com
* Alternate: austin@halostatue.ca