Sha256: 895ed45d8be2441bc95f6099118fc62233d4a250e8af44ad84347a2a48a6cfa9

Contents?: true

Size: 251 Bytes

Versions: 16

Compression:

Stored size: 251 Bytes

Contents

begin
  " ".squish
rescue
  class String

    def squish
      dup.squish!
    end

    def squish!
      gsub!(/\A[[:space:]]+/, '')
      gsub!(/[[:space:]]+\z/, '')
      gsub!(/[[:space:]]+/, ' ')
      self
    end
    
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
hipster_sql_to_hbase-0.3.29 lib/datatype_extras.rb
hipster_sql_to_hbase-0.3.20 lib/datatype_extras.rb
hipster_sql_to_hbase-0.3.12 lib/datatype_extras.rb
hipster_sql_to_hbase-0.3.2 lib/datatype_extras.rb
hipster_sql_to_hbase-0.3.1 lib/datatype_extras.rb
hipster_sql_to_hbase-0.3.0 lib/datatype_extras.rb
hipster_sql_to_hbase-0.2.2 lib/datatype_extras.rb
hipster_sql_to_hbase-0.2.0 lib/datatype_extras.rb
hipster_sql_to_hbase-0.1.85 lib/datatype_extras.rb
hipster_sql_to_hbase-0.1.8 lib/datatype_extras.rb
hipster_sql_to_hbase-0.1.7 lib/datatype_extras.rb
hipster_sql_to_hbase-0.1.6 lib/datatype_extras.rb
hipster_sql_to_hbase-0.1.5 lib/datatype_extras.rb
hipster_sql_to_hbase-0.1.4 lib/datatype_extras.rb
hipster_sql_to_hbase-0.1.3 lib/datatype_extras.rb
hipster_sql_to_hbase-0.1.2 lib/datatype_extras.rb