るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
5件ヒット [1-5件を表示] (0.020秒)

別のキーワード

  1. _builtin size
  2. net/imap size
  3. _builtin size?
  4. rexml/document size
  5. set size

検索結果

REXML::Elements#size -> Integer (54349.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
# そのうち要...

REXML::Attributes#size -> Integer (45313.0)

属性の個数を返します。

...属性の個数を返します。


//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='2' att='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").first

p a.attribu...

REXML::Parent#size -> Integer (45313.0)

保持している子ノードの数を返します。

保持している子ノードの数を返します。

REXML::Attributes#length -> Integer (13.0)

属性の個数を返します。

...属性の個数を返します。


//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='2' att='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").first

p a.attribu...

REXML::Parent#length -> Integer (13.0)

保持している子ノードの数を返します。

保持している子ノードの数を返します。

絞り込み条件を変える