るりまサーチ

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

別のキーワード

  1. net/http get
  2. http start
  3. http get
  4. net/http start
  5. net/http post

検索結果

<< < 1 2 >>

REXML::Attributes#length -> Integer (14.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.attributes...
<< < 1 2 >>