lib/core/facets/string/subtract.rb in facets-2.4.3 vs lib/core/facets/string/subtract.rb in facets-2.4.4

- old
+ new

@@ -1,14 +1,4 @@ -class String - - # Removes occurances of a string or regexp. - # - # "HELLO HELLO" - "LL" #=> "HEO HEO" - # - # CREDIT: Benjamin David Oakes - - def -(pattern) - self.gsub(pattern, '') - end - -end +# TODO: Deprecate string/subtract file. +# +require 'facets/string/op_sub'