るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.046秒)
トップページ > クエリ:name[x] > クエリ:first[x] > クラス:REXML::Attributes[x] > クエリ:delete_all[x] > バージョン:2.1.0[x]

別のキーワード

  1. _builtin first
  2. range first
  3. enumerable first
  4. matrix first_minor
  5. array first

ライブラリ

検索結果

REXML::Attributes#delete_all(name) -> [REXML::Attribute] (54712.0)

name という名前を持つ属性をすべて削除します。

name という名前を持つ属性をすべて削除します。

削除された属性を配列で返します。

@param name 削除する属性の名前

//emlist[][ruby]{
require 'rexml/document'

doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='&lt;'/>
</root>
EOS
a = doc.get_elem...