るりまサーチ

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

別のキーワード

  1. cgi element_init
  2. cgi/html element_init
  3. matrix element
  4. element add_attribute
  5. element add_namespace

ライブラリ

クラス

検索結果

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

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

...il を返します。

@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.del...