method

remove!

Importance_1
remove!(*patterns) public

Alters the string by removing all occurrences of the patterns.

str = "foo bar test"
str.remove!(" test")                 # => "foo bar"
str                                  # => "foo bar"
Show source
Register or log in to add new notes.