るりまサーチ

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

別のキーワード

  1. _builtin >>
  2. socket msg_eof
  3. irb/input-method readable_atfer_eof?
  4. _builtin eof?
  5. _builtin eof

ライブラリ

検索結果

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>"
//}...