るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.067秒)
トップページ > クエリ:IO[x] > クエリ:p[x] > クエリ:previous_sibling[x] > クラス:REXML::Child[x] > ライブラリ:rexml/document[x]

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. lupdecomposition p
  5. _builtin p

検索結果

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

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

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

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

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

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