2件ヒット
[1-2件を表示]
(0.028秒)
クラス
-
REXML
:: Element (1) -
REXML
:: Parent (1)
検索結果
先頭2件
-
REXML
:: Parent # delete _ at(index) -> REXML :: Child | nil (54313.0) -
子ノード列上の index で指定された場所の要素を取り除きます。
子ノード列上の index で指定された場所の要素を取り除きます。
取り除いだノードを返します。indexが範囲外である場合は何もせず
nil を返します。 -
REXML
:: Element # delete _ attribute(key) -> REXML :: Attribute | nil (18310.0) -
要素から key という属性名の属性を削除します。
...nil を返します。
@param key 削除する要素(文字列(属性名) or REXML::Attributeオブジェクト)
//emlist[][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.de...