LineCache is a module for reading and caching lines. It also provides facility for remapping file names and line ranges within a file. If coderay is installed, LineCache an colorize Ruby source code. This may be useful for example in a debugger where the same lines are shown many times.
Gemfile gem 'rbx-linecache', '~> 1.2'
install gem install rbx-linecache -v 1.2