Class: REXML::Attributes

Inherits:
Object
  • Object
show all
Defined in:
lib/pacemaker/xml/xml.rb

Overview

make REXML’s attributes to be sorted by their name when iterating through them instead of randomly placing them each time it’s required to generate stable XML texts for unit testing

Instance Method Summary collapse

Instance Method Details

#each_valueObject

:yields: attribute



59
60
61
62
63
# File 'lib/pacemaker/xml/xml.rb', line 59

def each_value # :yields: attribute
  keys.sort.each do |key|
    yield fetch key
  end
end