Class: REXML::Attributes

Inherits:
Hash show all
Defined in:
lib/amrita2/testsupport.rb

Instance Method Summary collapse

Methods inherited from Hash

#amrita_value

Methods included from Amrita2::DictionaryData

===, #amrita_value

Instance Method Details

#each_attributeObject

redefine each_attribute for unified order



34
35
36
37
38
39
40
41
42
43
# File 'lib/amrita2/testsupport.rb', line 34

def each_attribute
  keys.sort.each do |key|
    val = get_attribute(key)
    if val.kind_of? Attribute
      yield val
    else
      val.each_value { |atr| yield atr }
    end
  end
end