るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.053秒)

別のキーワード

  1. document root
  2. pstore root?
  3. rexml/document root
  4. psych root
  5. pathname root?

ライブラリ

クラス

検索結果

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

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_elements("/root/a").first

a.attributes.delete_all("att") # => [att=...