Sha256: 314db6df55d87d008df0e480fc710e3bcf4e6ef40da5b70afb1bedce0171acf9

Contents?: true

Size: 62 Bytes

Versions: 13

Compression:

Stored size: 62 Bytes

Contents

class String
  def squish
   self.gsub(/\n\s*/, '')
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pinch_hitter-0.7.0 lib/pinch_hitter/core_ext/string.rb
pinch_hitter-0.6.0 lib/pinch_hitter/core_ext/string.rb
pinch_hitter-0.5.6 lib/pinch_hitter/core_ext/string.rb
pinch_hitter-0.5.5 lib/pinch_hitter/core_ext/string.rb
pinch_hitter-0.5.4 lib/pinch_hitter/core_ext/string.rb
pinch_hitter-0.5.3 lib/pinch_hitter/core_ext/string.rb
pinch_hitter-0.5.2 lib/pinch_hitter/core_ext/string.rb
pinch_hitter-0.5.1 lib/pinch_hitter/core_ext/string.rb
pinch_hitter-0.5 lib/pinch_hitter/core_ext/string.rb
pinch_hitter-0.4 lib/pinch_hitter/core_ext/string.rb
pinch_hitter-0.3 lib/pinch_hitter/core_ext/string.rb
pinch_hitter-0.2 lib/pinch_hitter/core_ext/string.rb
pinch_hitter-0.1 lib/pinch_hitter/core_ext/string.rb