linecache.rb

Path: lib/linecache.rb
Last Update: Sat Feb 23 07:18:41 +0000 2019

Copyright (C) 2007, 2008, 2010-2012 Rocky Bernstein <rockyb@rubyforge.net>

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301 USA.

Required files

digest/sha1   set   linecache/tracelines   linecache/version   rubygems   coderay   term/ansicolor  

Methods

yes_no  

Constants

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__

Public Instance methods

[Validate]