File buffer Gem
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
buffy.gemspec

README.md

Buffy

Buffy is a gem for reading files into a buffer

Installation

Add this line to your application's Gemfile:

gem 'buffy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install buffy

Usage

b = Buffy::FileBuffer.new("hello_world.txt")
b.lines
=> ["hello","world"]

b.filename
=> "hello_world.txt"

b.line 1..2
  1: hello
  2: world
=> false

b.line 1, "goodbye cruel"
=> true

b.line 1..2
  1: goodbye cruel
  2: world
=> false

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request