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 and rb-threadframe.
Gemfile gem 'linecache-tf', '~> 1.0'
install gem install linecache-tf -v 1.0