LineCache is a module for reading and caching lines. This may be useful for example in a debugger where the same lines are shown many times. This version works only with a patched version of Ruby 1.9.2 or 1.9.3 and rb-threadframe.
Gemfile gem 'linecache-tf', '~> 1.2'
install gem install linecache-tf