This post originated from an RSS feed registered with Ruby Buzz
by Red Handed.
Original Post: Whoa, SCRIPT_LINES__?!
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
Did you know this? I had no idea. If you define SCRIPT_LINES__ constant as a Hash, then the source code for all load‘d or require‘d files will be stored in the Hash! The key is the path to the source file and the value is an array of strings, each a line of source code.