るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. fiddle type_size_t
  5. fiddle type_ssize_t

ライブラリ

クラス

検索結果

REXML::Attributes#namespaces -> { String => String } (21338.0)

self の中で宣言されている名前空間の集合を返します。

...ist[][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 doc.root.attributes.namespaces
# => {"foo"=>"http:...
...//example.org/foo", "bar"=>"http://example.org/bar"}
p a.attributes.namespaces
# => {}
//}...