Sha256: 507f626066a21da7e36d5d9912722efb4ce7aca4c6552511694fcf04dfb67b51

Contents?: true

Size: 189 Bytes

Versions: 5

Compression:

Stored size: 189 Bytes

Contents

require_relative 'third_part/active_support/core_ext/string/filters'
class String
  def multiline_squish
    split("\n").map(&:squish).join("\n").gsub(/\A\n+/,'').gsub(/\n+\z/,'')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bioinform-0.1.17 lib/bioinform/support/multiline_squish.rb
bioinform-0.1.16 lib/bioinform/support/multiline_squish.rb
bioinform-0.1.15 lib/bioinform/support/multiline_squish.rb
bioinform-0.1.14 lib/bioinform/support/multiline_squish.rb
bioinform-0.1.13 lib/bioinform/support/multiline_squish.rb