HomePhorge

Add `lines` alias for `each_line` in Ruby 1.8.5.
6866d4b6606fUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Add lines alias for each_line in Ruby 1.8.5.

String and IO both have the method lines, an alias for each_line, added in
version 1.8.7; this was used in a few places in the code, and because it is a
simple alias we can easily add it in older versions by hand.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
Nick Lewis <nick@puppetlabs.com>Committed on Oct 22 2011, 12:51 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU2f9ec3cafb2e: s/not_to/should_not/ for older versions of RSpec 2.
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU6866d4b6606f: Add `lines` alias for `each_line` in Ruby 1.8.5. (authored by Daniel Pittman <daniel@puppetlabs.com>).Oct 22 2011, 12:51 AM