種類
- インスタンスメソッド (336)
- 特異メソッド (12)
ライブラリ
-
rexml
/ document (348)
キーワード
- << (12)
- [] (12)
- []= (36)
- add (12)
- children (12)
-
deep
_ clone (12) - delete (12)
-
delete
_ at (12) -
delete
_ if (24) - each (24)
-
each
_ child (24) -
each
_ index (24) - index (12)
-
insert
_ after (12) -
insert
_ before (12) - length (12)
- new (12)
- parent? (12)
- push (12)
-
replace
_ child (12) - size (12)
-
to
_ a (12) - unshift (12)
検索結果
先頭5件
-
REXML
:: Parent # each _ index -> Enumerator (1.0) -
各子ノードのインデックスに対しブロックを呼び出します。
各子ノードのインデックスに対しブロックを呼び出します。
ブロックが省略された場合は上のような繰り返しをする
Enumerator オブジェクトを返します。 -
REXML
:: Parent # each _ index {|index| . . . } -> () (1.0) -
各子ノードのインデックスに対しブロックを呼び出します。
各子ノードのインデックスに対しブロックを呼び出します。
ブロックが省略された場合は上のような繰り返しをする
Enumerator オブジェクトを返します。 -
REXML
:: Parent # index(child) -> Integer | nil (1.0) -
child の子ノード列上での位置を返します。
child の子ノード列上での位置を返します。
child が子ノードでない場合には nil を返します。 -
REXML
:: Parent # insert _ after(child1 , child2) -> self (1.0) -
child2 を child1 で指定したノードの後ろに挿入します。
child2 を child1 で指定したノードの後ろに挿入します。
child1 が REXML::Child のインスタンスであるならば、その
子ノードの後ろに挿入されます。
child1 が 文字列であるならば、XPath で場所を指定します。
具体的には REXML::XPath.first(self, child1) で特定されるノードの
後ろに挿入されます。
挿入されるノード(child2)の親は self に変更されます。
@param child1 挿入場所の指定
@param child2 挿入されるノード -
REXML
:: Parent # insert _ before(child1 , child2) -> self (1.0) -
child2 を child1 で指定したノードの前に挿入します。
child2 を child1 で指定したノードの前に挿入します。
child1 が REXML::Child のインスタンスであるならば、その
子ノードの前に挿入されます。
child1 が 文字列であるならば、XPath で場所を指定します。
具体的には REXML::XPath.first(self, child1) で特定されるノードの
前に挿入されます。
挿入されるノード(child2)の親は self に変更されます。
@param child1 挿入場所の指定
@param child2 挿入されるノード -
REXML
:: Parent # length -> Integer (1.0) -
保持している子ノードの数を返します。
保持している子ノードの数を返します。 -
REXML
:: Parent # parent? -> bool (1.0) -
true を返します。
true を返します。
@see REXML::Node#parent -
REXML
:: Parent # push(object) -> () (1.0) -
object を子ノード列の最後に追加します。
object を子ノード列の最後に追加します。
object の親ノードには self が設定されます。
@param object 追加するノード -
REXML
:: Parent # replace _ child(to _ replace , replacement) -> () (1.0) -
子ノード列上の to_replace を replacement に置き換えます。
子ノード列上の to_replace を replacement に置き換えます。
to_replace の parent は nil に、
replacement の parent は selfに変更されます。
@param to_replace 置き換え元のノード
@param replacement 置き換え先のノード