るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.199秒)
トップページ > クエリ:-[x] > クエリ:E[x] > クエリ:rexml[x] > クエリ:delete_at[x]

別のキーワード

  1. rexml/document new
  2. rexml/document write
  3. rexml/document to_s
  4. rexml/document clone
  5. rexml/document node_type

ライブラリ

クラス

検索結果

REXML::Parent#delete_at(index) -> REXML::Child | nil (27402.0)

子ノード列上の index で指定された場所の要素を取り除きます。

...子ノード列上の index で指定された場所の要素を取り除きます。

取り除いだノードを返します。indexが範囲外である場合は何もせず
nil を返します。...

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

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

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

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

key という属性名の属性が存在しない場合は削除されずに、nil を返します。

@param key 削除する要素(文字列(属性名) or REXML::Attributeオブジェクト)

//emlis...
...t[][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"); e # => <E y:x='bar'/>
//}...