12件ヒット
[1-12件を表示]
(0.016秒)
クラス
-
REXML
:: Attributes (12)
検索結果
-
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (18109.0) -
各属性に対しブロックを呼び出します。
...mlist[][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='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.each_attribute do |attr|
p [attr.na...