るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.215秒)
トップページ > クエリ:i[x] > クエリ:-[x] > 種類:インスタンスメソッド[x] > クエリ:t[x] > クエリ:each_attribute[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. fiddle type_intptr_t
  5. fiddle type_ptrdiff_t

ライブラリ

クラス

検索結果

REXML::Attributes#each_attribute {|attribute| ... } -> () (36608.0)

各属性に対しブロックを呼び出します。

...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='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").fir...
...st

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] (33502.0)

追加された RDoc::Attr に対してブロックを評価します。

...追加された RDoc::Attr に対してブロックを評価します。...