るりまサーチ (Ruby 3.1)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.134秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:h[x] > クエリ:replace_child[x] > バージョン:3.1[x]

別のキーワード

  1. _builtin to_h
  2. hash to_h
  3. array to_h
  4. enumerable to_h
  5. openstruct to_h

ライブラリ

クラス

検索結果

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

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

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

to_replace の parent は nil に、
replacement の parent は selfに変更されます。

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

REXML::Child#replace_with(child) -> self (45919.0)

親ノードの子ノード列上において、 self を child に置き換えます。

親ノードの子ノード列上において、 self を child に置き換えます。

@param child 置き換え後のノード
@see REXML::Parent#replace_child