るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.151秒)
トップページ > クエリ:t[x] > クエリ:@[x] > 種類:インスタンスメソッド[x] > クエリ:replace[x] > クエリ:replace_child[x] > クラス:REXML::Parent[x]

別のキーワード

  1. _builtin replace
  2. dbm replace
  3. resolv-replace new
  4. gdbm replace
  5. sdbm replace

ライブラリ

検索結果

REXML::Parent#replace_child(to_replace, replacement) -> () (27545.0)

子ノード列上の to_replace を replacement に置き換えます。

...子ノード列上の to_replace replacement に置き換えます。

t
o_replace の parent は nil に、
replace
ment の parent は selfに変更されます。

@
param to_replace 置き換え元のノード
@
param replacement 置き換え先のノード...