るりまサーチ

最速Rubyリファレンスマニュアル検索!
120件ヒット [101-120件を表示] (0.066秒)

別のキーワード

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

ライブラリ

キーワード

検索結果

<< < 1 2 >>

REXML::Child#previous_sibling=(other) (3002.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#remove -> self (3002.0)

親ノードの子ノード列から self を取り除きます。

親ノードの子ノード列から self を取り除きます。
<< < 1 2 >>