るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.033秒)
トップページ > クエリ:b[x] > クエリ:previous_sibling=[x]

別のキーワード

  1. child previous_sibling=
  2. child previous_sibling
  3. rexml previous_sibling_node
  4. node previous_sibling_node
  5. element previous_element

ライブラリ

クラス

検索結果

REXML::Child#previous_sibling=(other) (24236.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>"
//}...

REXML::Child#next_sibling=(other) (6136.0)

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

...ther を挿入します。

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