From: James Edward Gray II Date: 2006-11-15T23:32:30+09:00 Subject: Re: how can I dynamically get the source of an object's method? On Nov 15, 2006, at 2:37 AM, David Lowenfels wrote: > I've been wondering if it's possible to get an object to print out the > source code of a method into a string. This isn't easy in the general sense with Ruby, because you can use code to write, or even change, code. However, some of the tricks for the SerializableProc Ruby Quiz might give you ideas: http://www.rubyquiz.com/quiz38.html See Florian Gross's solution, for example. James Edward Gray II