replace(other) -> String[permalink][rdoc]-
self の内容を other の内容で置き換えます。
例:
str = "foo" str.replace "bar" p str # => "bar"
このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
replace(other) -> String[permalink][rdoc]self の内容を other の内容で置き換えます。
例:
str = "foo" str.replace "bar" p str # => "bar"