From: Austin Ziegler Date: 2005-01-14T06:57:54+09:00 Subject: Re: Seeing a definition On Fri, 14 Jan 2005 06:05:19 +0900, Pete Elmore 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