Class: REXML::Attributes
Instance Method Summary collapse
-
#each_attribute ⇒ Object
redefine each_attribute for unified order.
Methods inherited from Hash
Methods included from Amrita2::DictionaryData
Instance Method Details
#each_attribute ⇒ Object
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 |