Sha256: bd55d698a01064a263adb164a19c828d69f8cd68b1211f9e09d6f35df61ee78e

Contents?: true

Size: 1.16 KB

Versions: 16

Compression:

Stored size: 1.16 KB

Contents

= LineCache - Module to read and cache lines of a file

== Summary

  require 'linecache'
  lines = LineCache::getlines('/tmp/myruby.rb')
  # The following lines have same effect as the above.
  $: << '/tmp'
  Dir.chdir('/tmp') {lines = LineCache::getlines('myruby.rb')

  line = LineCache::getline('/tmp/myruby.rb', 6)
  # Note lines[6] == line (if /tmp/myruby.rb has 6 lines)

  LineCache::clear_file_cache
  LineCache::clear_file_cache('/tmp/myruby.rb')
  LineCache::update_cache   # Check for modifications of all cached files.

== Credits

  This is a port of the module of the same name from the Python distribution.

  The idea for how TraceLineNumbers works, and some code was taken
  from ParseTree by Ryan Davis.

== Other stuff

Author::   Rocky Bernstein <rockyb@rubyforge.net>
License::  Copyright (c) 2007, 2008 Rocky Bernstein
           Released under the GNU GPL 2 license

== Warranty

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.

$Id: README 63 2008-03-04 22:47:26Z rockyb $

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/linecache-0.43/README
vim-jar-0.1.2 bundler/ruby/1.8/gems/linecache-0.43/README
vim-jar-0.1.1 bundler/ruby/1.8/gems/linecache-0.43/README
vim-jar-0.1.0 bundler/ruby/1.8/gems/linecache-0.43/README
vim-jar-0.0.3 bundler/ruby/1.8/gems/linecache-0.43/README
vim-jar-0.0.2 bundler/ruby/1.8/gems/linecache-0.43/README
vim-jar-0.0.1 bundler/ruby/1.8/gems/linecache-0.43/README
rackjour-0.1.8 vendor/gems/gems/linecache-0.43/README
linecache-0.43-mswin32 README
linecache-0.42-mswin32 README
linecache-0.41-mswin32 README
linecache-0.3 README
linecache-0.41 README
linecache-0.4 README
linecache-0.43 README
linecache-0.42 README