るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.152秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:l[x] > バージョン:2.1.0[x] > クエリ:tr[x] > クエリ:d[x] > クラス:REXML::Element[x] > クエリ:delete_attribute[x]

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. ssl op_tls_d5_bug
  4. string to_d
  5. integer to_d

ライブラリ

検索結果

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

要素から key という属性名の属性を削除します。

...

@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")...