linecache.rb

Path: lib/linecache.rb
Last Update: Tue Dec 22 01:02:11 +0000 2009

$Id: linecache.rb 69 2008-03-09 23:24:25Z rockyb $

  Copyright (C) 2007, 2008 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   rubygems   tracelines  

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]