RubyのString#deleteの意外な機能 - Qiita

Stringクラスのインスタンスメソッド、「delete」その名の通り、レシーバの文字列から引数の文字列を消すメソッド。a = '12345'puts a.delete('3')# => 1…