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.