るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.115秒)
トップページ > クエリ:IO.new[x] > クエリ:eof?[x] > クエリ:body_stream=[x] > クエリ:display[x] > クラス:REXML::Child[x]

別のキーワード

  1. _builtin eql?
  2. _builtin empty?
  3. _builtin include?
  4. _builtin zero?
  5. prime prime?

ライブラリ

検索結果

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

other を 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 # => "<a><d/><b/><c/></a>"
//}...