るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.071秒)
トップページ > バージョン:2.3.0[x] > クエリ:l[x] > クエリ:EX[x] > クエリ:Attributes[x] > クエリ:size[x] > ライブラリ:rexml/document[x]

別のキーワード

  1. _builtin lock_ex
  2. constants lock_ex
  3. sync ex
  4. sync sync_ex_count=
  5. sync sync_ex_locker=

クラス

検索結果

REXML::Attributes#size -> Integer (72328.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::Attributes#length -> Integer (36328.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...