るりまサーチ

最速Rubyリファレンスマニュアル検索!
108件ヒット [101-108件を表示] (0.074秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:require[x] > クラス:REXML::Elements[x]

別のキーワード

  1. kernel require
  2. getoptlong require_order
  3. rubygems/custom_require require
  4. irb/ext/use-loader irb_require
  5. require execute

ライブラリ

キーワード

検索結果

<< < 1 2 >>

REXML::Elements#size -> Integer (8.0)

保持している要素の個数を返します。

...保持している要素の個数を返します。

//emlist[][ruby]{
require
'rexml/document'
doc = REXML::Document.new '<a>sean<b/>elliott<b/>russell<b/></a>'
# doc.root は3つの要素と3つのテキストノードを持つため、6を返す
doc.root.size # => 6
# そのうち要...
<< < 1 2 >>