HomePhorge

Add `lines` alias for `each_line` in Ruby 1.8.5.
6c3762307410Unpublished

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 21 2011, 7:20 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUe29eb6aeebc7: s/not_to/should_not/ for older versions of RSpec 2.
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU6c3762307410: Add `lines` alias for `each_line` in Ruby 1.8.5. (authored by Daniel Pittman <daniel@puppetlabs.com>).Oct 21 2011, 7:20 PM