るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.069秒)
トップページ > クエリ:IO.new[x] > クエリ:dump[x] > バージョン:2.3.0[x] > クエリ:major_version[x] > クエリ:member?[x] > クエリ:NotationDecl[x] > クラス:REXML::Child[x]

別のキーワード

  1. _builtin marshal_dump
  2. psych dump
  3. _builtin dump
  4. win32ole major_version
  5. psych dump_stream

ライブラリ

検索結果

REXML::Child#previous_sibling=(other) (18358.0)

other を self の前の隣接ノードとします。

other を self の前の隣接ノードとします。

つまり、親ノードが持つ子ノード列の self の前に
other を挿入します。

@param other 挿入するノード

//emlist[][ruby]{
require 'rexml/document'

a = REXML::Element.new("a")
b = a.add_element("b")
c = REXML::Element.new("c")
b.next_sibling = c
d = REXML::Element.new("d")
b.previous_sibling = d

p a.to_s # =>...