lib/rconf/configurator_registry.rb in rconf-0.7.6 vs lib/rconf/configurator_registry.rb in rconf-0.7.8
- old
+ new
@@ -46,10 +46,10 @@
# Block should take one argument which is the configurator being iterated on
#
# === Return
# true:: Always return true
def each(&blk)
- @configurators.each(&blk)
+ @configurators.keys.map(&:to_s).sort.each { |k| blk.call(k, @configurators[k.to_sym]) }
true
end
protected