method
remove!
v6.0.0 -
Show latest stable
- Class:
String
remove!(*patterns)public
Alters the string by removing all occurrences of the patterns.
str = "foo bar test" str.remove!(" test", /bar/) # => "foo " str # => "foo "
remove!(*patterns)Alters the string by removing all occurrences of the patterns.
str = "foo bar test" str.remove!(" test", /bar/) # => "foo " str # => "foo "