120件ヒット
[101-120件を表示]
(0.040秒)
別のキーワード
クラス
-
REXML
:: Attribute (12) -
REXML
:: Attributes (48) -
REXML
:: Element (60)
キーワード
-
add
_ namespace (12) - attribute (12)
-
delete
_ namespace (12) - each (12)
-
each
_ attribute (12) -
get
_ attribute _ ns (12) - namespaces (24)
検索結果
先頭2件
-
REXML
:: Attributes # each {|name , value| . . . } -> () (121.0) -
各属性の名前と値に対しブロックを呼び出します。
...各属性の名前と値に対しブロックを呼び出します。
名前には expanded_name(REXML::Namespace#exapnded_name)が
渡されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://examp... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (121.0) -
各属性に対しブロックを呼び出します。
...[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.namespace...