るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.031秒)
トップページ > バージョン:2.2.0[x] > クエリ:http[x] > クエリ:get[x] > クエリ:delete[x] > ライブラリ:rexml/document[x]

別のキーワード

  1. net/http get
  2. http get
  3. http start
  4. net/http start
  5. net/http delete

クラス

検索結果

REXML::Attributes#delete(attribute) -> REXML::Element (54436.0)

指定した属性を取り除きます。

...を返します。

@param attribute 取り除く属性(文字列もしくは REXML::Attribute オブジェクト)

//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:at...

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

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=...