22件ヒット
[1-22件を表示]
(0.074秒)
ライブラリ
-
rdoc
/ context (11) -
rexml
/ document (11)
クラス
-
RDoc
:: Context (11) -
REXML
:: Attributes (11)
検索結果
先頭2件
-
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (18207.0) -
各属性に対しブロックを呼び出します。
...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.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "... -
RDoc
:: Context # each _ attribute {|a| . . . } -> [RDoc :: Attr] (18201.0) -
追加された RDoc::Attr に対してブロックを評価します。
追加された RDoc::Attr に対してブロックを評価します。