method
remove
v4.2.1 -
Show latest stable
- Class:
String
remove(*patterns)public
Returns a new string with all occurrences of the patterns removed.
str = "foo bar test" str.remove(" test") # => "foo bar" str # => "foo bar test"
remove(*patterns)Returns a new string with all occurrences of the patterns removed.
str = "foo bar test" str.remove(" test") # => "foo bar" str # => "foo bar test"