Sha256: 352079224c4ff322ceb559a85e58fafc06e34457d7cba69819ca3067050b1404
Contents?: true
Size: 283 Bytes
Versions: 7
Compression:
Stored size: 283 Bytes
Contents
== String#cleanlines Thre String#cleanlines method works essentially the same as String#lines, returning an Array of line strings, but it also removes trailing whitespace from each line. require 'facets/string/cleanlines' "a \n b \nc".cleanlines.to_a.assert == ["a","b","c"]
Version data entries
7 entries across 7 versions & 1 rubygems