22件ヒット
[1-22件を表示]
(0.138秒)
ライブラリ
-
rdoc
/ context (11) -
rexml
/ document (11)
クラス
-
RDoc
:: Context (11) -
REXML
:: Attributes (11)
検索結果
先頭2件
-
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (24207.0) -
各属性に対しブロックを呼び出します。
...は REXML::Attribute オブジェクトで渡されます。
//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='<'/>
</root>
EOS
a = doc.get_elements("/r......oot/a").first
a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}... -
RDoc
:: Context # each _ attribute {|a| . . . } -> [RDoc :: Attr] (24201.0) -
追加された RDoc::Attr に対してブロックを評価します。
追加された RDoc::Attr に対してブロックを評価します。