るりまサーチ (Ruby 2.3.0)

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

別のキーワード

  1. _builtin at
  2. _builtin values_at
  3. time at
  4. dbm values_at
  5. gdbm values_at

ライブラリ

検索結果

REXML::Element#delete_attribute(key) -> REXML::Attribute | nil (91228.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")...