66件ヒット
[1-66件を表示]
(0.104秒)
別のキーワード
ライブラリ
-
rexml
/ document (66)
キーワード
-
next
_ sibling= (11) - parent (11)
- parent= (11)
-
previous
_ sibling (11) -
previous
_ sibling= (11) -
replace
_ with (11)
検索結果
先頭5件
-
REXML
:: Child # parent -> REXML :: Parent|nil (6202.0) -
親ノードを返します。
...親ノードを返します。
ルートノードの場合は nil を返します。
@see REXML::Child#parent=... -
REXML
:: Child # previous _ sibling=(other) (6108.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>"
/... -
REXML
:: Child # parent=(other) (6102.0) -
other を親ノードに設定します。
...メソッドだけでは other の子ノード集合に self は追加されません。
つまりこのメソッドを呼び出した直後は不完全な状態であり、親ノード側を
適切に設定する必要があります。
@param other 新たな親ノード
@see REXML::Child#parent... -
REXML
:: Child # previous _ sibling -> REXML :: Node (6102.0) -
前の隣接ノードを返します。
...前の隣接ノードを返します。
REXML::Node#previous_sibling_node の別名です。
@see REXML::Child#previous_sibling=... -
REXML
:: Child # replace _ with(child) -> self (6102.0) -
親ノードの子ノード列上において、 self を child に置き換えます。
...親ノードの子ノード列上において、 self を child に置き換えます。
@param child 置き換え後のノード
@see REXML::Parent#replace_child... -
REXML
:: Child # next _ sibling=(other) (8.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>"
/...