Class: REXML::Attributes
- Inherits:
-
Object
- Object
- REXML::Attributes
- 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
-
#each_value ⇒ Object
:yields: attribute.
Instance Method Details
#each_value ⇒ Object
: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 |