Path: | lib/linecache.rb |
Last Update: | Wed Apr 14 14:12:18 -0500 2010 |
Temporary solution. Copy-pasted from rocky-hacks/linecache project. Will/should be solved generally in the future.
SCRIPT_LINES__ | = | {} unless defined? SCRIPT_LINES__ | Defining SCRIPT_LINES__ causes Ruby to cache the lines of files it reads. The key the setting of FILE at the time when Ruby does its read. LineCache keeps a separate copy of the lines elsewhere and never destroys SCRIPT_LINES__ |