るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.019秒)
トップページ > ライブラリ:rexml[x] > バージョン:2.4.0[x] > クエリ:REXML::Child[x] > クエリ:next_sibling[x]

別のキーワード

  1. pathname each_child
  2. _builtin each_child
  3. dir each_child
  4. etc sc_child_max
  5. parent each_child

クラス

キーワード

検索結果

REXML::Child#next_sibling -> REXML::Node (117361.0)

次の隣接ノードを返します。

...次の隣接ノードを返します。

REXML
::Node#next_sibling_node の別名です。

@see REXML::Child#next_sibling=...

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

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