Sha256: 7faeb6c8abe6f6271e3a6ebd2a6af6397a290088145d1318b94c3b15b6aeebd0

Contents?: true

Size: 271 Bytes

Versions: 24

Compression:

Stored size: 271 Bytes

Contents

class String

  def remove(string_or_rx)
    sub(string_or_rx, '')
  end

  def remove!(string_or_rx)
    sub!(string_or_rx, '')
  end

  def remove_all(string_or_rx)
    gsub(string_or_rx, '')
  end

  def remove_all!(string_or_rx)
    gsub!(string_or_rx, '')
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
hobosupport-1.1.0 lib/hobo_support/string.rb
hobosupport-1.0.3 lib/hobo_support/string.rb
hobosupport-1.1.0.pre4 lib/hobo_support/string.rb
hobosupport-1.1.0.pre3 lib/hobo_support/string.rb
hobosupport-1.1.0.pre2 lib/hobo_support/string.rb
hobosupport-1.1.0.pre0 lib/hobo_support/string.rb
hobosupport-1.0.2 lib/hobo_support/string.rb
hobosupport-1.0.1 lib/hobo_support/string.rb
hobosupport-1.0.0 lib/hobo_support/string.rb
hobosupport-0.9.106 lib/hobo_support/string.rb
hobosupport-0.9.105 lib/hobo_support/string.rb
hobosupport-0.9.104 lib/hobo_support/string.rb
hobosupport-0.9.103 lib/hobo_support/string.rb
hobosupport-0.9.102 lib/hobo_support/string.rb
hobosupport-0.9.101 lib/hobo_support/string.rb
hobosupport-0.9.100 lib/hobo_support/string.rb
hobosupport-0.9.0 lib/hobo_support/string.rb
hobosupport-0.8.10 lib/hobo_support/string.rb
hobosupport-0.8.9 lib/hobo_support/string.rb
hobosupport-0.8.8 lib/hobo_support/string.rb