module Gemmy::Patches::StringPatch::InstanceMethods::CompressLines
Public Instance Methods
compress_lines(spaced = true)
click to toggle source
facets replace newlines or N spaces with one space
# File lib/gemmy/patches/string_patch.rb, line 229 def compress_lines(spaced = true) split($/).map{ |line| line.strip }.join(spaced ? ' ' : '') end