On Tue, 2004-07-13 at 12:12, Robert Klemme wrote:
> "Nate Smith" <nsmith5 / nist.gov> schrieb im Newsbeitrag
> news:1089732884.9305.5.camel / circuit.eeel.nist.gov...
> > Hello all,
> >
> > Does anyone know how to actually print (as a string) the contents of a
> > given method? I've googled and searched books, to no avail. Thanks much
> > for any help
> 
> AFAIK there is no easy solution.  You could write a script that parses the
> source file and prints it but this would not ensure you get the current
> definition of that method.
> 
> Why do you need that?

Well basically I am writing a class editor like squeak or visual age for
ruby. I guess I'll have to look into writing my own class in C for it :)
Thanks anyway

Nate