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.17.1 lib/autowow/decorators/string_decorator.rb
autowow-0.17.0 lib/autowow/decorators/string_decorator.rb
autowow-0.16.1 lib/autowow/decorators/string_decorator.rb
autowow-0.16.0 lib/autowow/decorators/string_decorator.rb
autowow-0.15.0 lib/autowow/decorators/string_decorator.rb
autowow-0.12.1 lib/autowow/decorators/string_decorator.rb
autowow-0.12.0 lib/autowow/decorators/string_decorator.rb
autowow-0.11.2 lib/autowow/decorators/string_decorator.rb
autowow-0.11.1 lib/autowow/decorators/string_decorator.rb
autowow-0.11.0 lib/autowow/decorators/string_decorator.rb
autowow-0.10.1 lib/autowow/decorators/string_decorator.rb
autowow-0.9.6 lib/autowow/decorators/string_decorator.rb
autowow-0.9.5 lib/autowow/decorators/string_decorator.rb
autowow-0.9.4 lib/autowow/decorators/string_decorator.rb
autowow-0.9.3 lib/autowow/decorators/string_decorator.rb
autowow-0.9.2 lib/autowow/decorators/string_decorator.rb
autowow-0.9.1 lib/autowow/decorators/string_decorator.rb
autowow-0.8.0 lib/autowow/decorators/string_decorator.rb
autowow-0.7.0 lib/autowow/decorators/string_decorator.rb
autowow-0.6.3 lib/autowow/decorators/string_decorator.rb