るりまサーチ (Ruby 2.4.0)

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

別のキーワード

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

ライブラリ

クラス

キーワード

検索結果

REXML::Child#previous_sibling -> REXML::Node (54358.0)

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

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

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

@see REXML::Child#previous_sibling=

REXML::Child#previous_sibling=(other) (18340.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 # =>...

REXML::Child#next_sibling=(other) (37.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 # =>...