11件ヒット
[1-11件を表示]
(0.060秒)
別のキーワード
クラス
-
REXML
:: Element (11)
検索結果
-
REXML
:: Element # delete _ attribute(key) -> REXML :: Attribute | nil (30535.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.delete_attribute("x"); e # => <E y:x='bar'/>
//}...