るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.042秒)
トップページ > クエリ:rexml/document[x] > クエリ:add[x] > クエリ:delete_attribute[x]

別のキーワード

  1. rexml/document new
  2. rexml/document write
  3. rexml/document node_type
  4. rexml/document to_s
  5. rexml/document clone

ライブラリ

クラス

検索結果

REXML::Element#delete_attribute(key) -> REXML::Attribute | nil (26125.0)

要素から 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'/>
//}...