Path: | lib/linecache.rb |
Last Update: | Wed Mar 11 14:53:46 -0400 2009 |
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__ |