From: "gene.tani@..." Date: 2006-05-09T22:42:06+09:00 Subject: Re: Print Out Code in Program Patrick wrote: > class Ab > def code > a = 5 > b = 2 > end > end > > Is there a way to store the actual code of a class or definition as a > string without manually doing it? Such as if you were doing a tutorial > on how something works. So basically I could do print aB and I get "def > code a = 5 b = 2 end" > SCRIPT_LINES__, maybe? http://www.rubyquiz.com/quiz38.html