22件ヒット
[1-22件を表示]
(0.199秒)
別のキーワード
ライブラリ
-
rexml
/ document (22)
クラス
-
REXML
:: Element (11) -
REXML
:: Parent (11)
検索結果
先頭2件
-
REXML
:: Parent # delete _ at(index) -> REXML :: Child | nil (27402.0) -
子ノード列上の index で指定された場所の要素を取り除きます。
...子ノード列上の index で指定された場所の要素を取り除きます。
取り除いだノードを返します。indexが範囲外である場合は何もせず
nil を返します。... -
REXML
:: Element # delete _ attribute(key) -> REXML :: Attribute | nil (15485.0) -
要素から key という属性名の属性を削除します。
...ら key という属性名の属性を削除します。
削除された属性を返します。
key という属性名の属性が存在しない場合は削除されずに、nil を返します。
@param key 削除する要素(文字列(属性名) or REXML::Attributeオブジェクト)
//emlis......t[][ruby]{
require 'rexml/document'
e = REXML::Element.new("E")
e.add_attribute("x", "foo"); e # => <E x='foo'/>
e.add_attribute("y:x", "bar"); e # => <E x='foo' y:x='bar'/>
e.delete_attribute("x"); e # => <E y:x='bar'/>
//}...