るりまサーチ

最速Rubyリファレンスマニュアル検索!
110件ヒット [1-100件を表示] (0.127秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:l[x] > クラス:REXML::Child[x]

別のキーワード

  1. matrix l
  2. kernel $-l
  3. _builtin $-l
  4. lupdecomposition l

ライブラリ

キーワード

検索結果

<< 1 2 > >>

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

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

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

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

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

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

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

...を 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 # => "<a><d/><b/><c/></a>"
//}...

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

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

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

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

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

REXML::Child#previous_sibling=(other) (6102.0)

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

...r を self の前の隣接ノードとします。

つまり、親ノードが持つ子ノード列の self の前に
other を挿入します。

@param other 挿入するノード

//emlist[][ruby]{
require 'rexml/document'

a = REXML::Element.new("a")
b = a.add_element("b")
c = REXML::Element.ne...
...w("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#replace_with(child) -> self (6102.0)

親ノードの子ノード列上において、 self を child に置き換えます。

...親ノードの子ノード列上において、 self を child に置き換えます。

@param child 置き換え後のノード
@see REXML::Parent#replace_child...

絞り込み条件を変える

REXML::Child#document -> REXML::Document | nil (3102.0)

そのノードが属する document (REXML::Document) を返します。

...そのノードが属する document (REXML::Document) を返します。

属する document が存在しない場合は nil を返します。...

REXML::Child#parent -> REXML::Parent|nil (3102.0)

親ノードを返します。

...親ノードを返します。

ルートノードの場合は nil を返します。

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

REXML::Child#remove -> self (3102.0)

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

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

REXML::Child#bytes (3002.0)

@todo

@todo

REXML::Child#parent=(other) (3002.0)

other を親ノードに設定します。

...ドと同じならばこのメソッドは何もしません。
self が親を持たない場合は単純に other を親ノードに設定します。
どちらでもない場合は、元の親ノードの子ノード列から self を取り除いて
から other を親ノードに設定します...
...メソッドだけでは other の子ノード集合に self は追加されません。
つまりこのメソッドを呼び出した直後は不完全な状態であり、親ノード側を
適切に設定する必要があります。

@param other 新たな親ノード
@see REXML::Child#parent...

絞り込み条件を変える

<< 1 2 > >>