るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.077秒)
トップページ > クエリ:i[x] > クエリ:l[x] > クエリ:NIL[x] > ライブラリ:rexml/document[x] > クエリ:delete_at[x]

別のキーワード

  1. _builtin nil?
  2. object nil?
  3. nilclass nil?
  4. object nil
  5. _builtin nil

クラス

検索結果

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

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

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

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

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

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

...合は削除されずに、nil を返します。

@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.delete_attribute("x"); e # => <E y:x='bar'/>
//}...