Sha256: dbfea23195fd3c2236811aae4722002aa20650b9bf9e7e341fc0988fffcd2e53

Contents?: true

Size: 201 Bytes

Versions: 24

Compression:

Stored size: 201 Bytes

Contents

module StringDecorator
  class ::String
    def reverse_chomp(str)
      reverse.chomp(str.reverse).reverse
    end

    def clean_lines
      each_line.map(&:strip).reject(&:empty?)
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
autowow-0.6.0 lib/autowow/decorators/string_decorator.rb
autowow-0.5.0 lib/autowow/decorators/string_decorator.rb
autowow-0.4.1 lib/autowow/decorators/string_decorator.rb
autowow-0.4.0 lib/autowow/decorators/string_decorator.rb