Sha256: 0a66627780b6316b46865943e16ca4b3d09c4e38228bfebb2fc27dd68b759a47

Contents?: true

Size: 158 Bytes

Versions: 7

Compression:

Stored size: 158 Bytes

Contents

== String#lines

Ruby 1.9 defined #lines to keep the newline character.

  require 'facets/string/lines'

  "a\nb\nc".lines.to_a.assert == ["a\n","b\n","c"]

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
facets-3.0.0 demo/core/string/lines.rdoc
facets-2.9.3 qed/core/string/lines.rdoc
facets-2.9.2 qed/core/string/lines.rdoc
facets-2.9.1 qed/core/string/lines.rdoc
facets-2.9.0 qed/core/string/lines.rdoc
facets-2.9.0.pre.2 qed/core/string/lines.rdoc
facets-2.9.0.pre.1 qed/core/string/lines.rdoc