Sha256: 579203286fdfbb36ef63f12fb1dadc93ebc25d6a77049315dcc1d2271d5cf117

Contents?: true

Size: 200 Bytes

Versions: 5

Compression:

Stored size: 200 Bytes

Contents

unless (RUBY_VERSION[0,3] == '1.9')

  class String

    # Returns an array of characters.
    #
    #   "abc\n123".lines  #=> ["abc","123"]

    def lines
      self.split(/\n/)
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-2.4.2 lib/core/facets/string/lines.rb
facets-2.4.3 lib/core/facets/string/lines.rb
facets-2.4.4 lib/core/facets/string/lines.rb
facets-2.4.5 lib/core/facets/string/lines.rb
mack-facets-0.8.2 lib/gems/facets-2.4.5/lib/core/facets/string/lines.rb