るりまサーチ

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

別のキーワード

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

ライブラリ

クラス

キーワード

検索結果

NEWS for Ruby 2.4.0 (6.0)

NEWS for Ruby 2.4.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...を追加 12596

* readline
* Readline.quoting_detection_proc, Readline.quoting_detection_proc= を追加
12659

* rexml
* REXML::Element#[] : If String or Symbol is specified, attribute
value is returned. Otherwise, Nth child is returned. This is
backward compatible c...

REXML::Elements#index(element) -> Integer (6.0)

element で指定した要素が何番目の子要素であるかを返します。

...element で指定した要素が何番目の子要素であるかを返します。

element が子要素でない場合は -1 を返します。

返り値は 1-origin です。

@param element インデックスを知りたい要素(REXML::Element オブジェクト)
@see REXML::Element#[]...