Sha256: 21a6a791a7ac5979535136c8266fec4c84f693b4c952169939dec61b416e9ea4

Contents?: true

Size: 212 Bytes

Versions: 8

Compression:

Stored size: 212 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

8 entries across 8 versions & 1 rubygems

Version Path
autowow-0.14.2 lib/autowow/decorators/string_decorator.rb
autowow-0.14.1 lib/autowow/decorators/string_decorator.rb
autowow-0.14.0 lib/autowow/decorators/string_decorator.rb
autowow-0.13.2 lib/autowow/decorators/string_decorator.rb
autowow-0.13.1 lib/autowow/decorators/string_decorator.rb
autowow-0.13.0 lib/autowow/decorators/string_decorator.rb
autowow-0.9.0 lib/autowow/decorators/string_decorator.rb
autowow-0.8.1 lib/autowow/decorators/string_decorator.rb