るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.101秒)
トップページ > バージョン:2.3.0[x] > クエリ:l[x] > クエリ:EX[x] > クエリ:insert_after[x]

別のキーワード

  1. _builtin lock_ex
  2. constants lock_ex
  3. sync sync_ex_locker
  4. sync_m ex
  5. sync sync_ex_count

ライブラリ

クラス

検索結果

REXML::Parent#insert_after(child1, child2) -> self (72904.0)

child2 を child1 で指定したノードの後ろに挿入します。

child2 を child1 で指定したノードの後ろに挿入します。

child1 が REXML::Child のインスタンスであるならば、その
子ノードの後ろに挿入されます。
child1 が 文字列であるならば、XPath で場所を指定します。
具体的には REXML::XPath.first(self, child1) で特定されるノードの
後ろに挿入されます。

挿入されるノード(child2)の親は self に変更されます。

@param child1 挿入場所の指定
@param child2 挿入されるノード