Sha256: 8b51cbd81afa256c1329f41dd10f87e1d0007b66f92719cbd9c9bbb4c376e51f

Contents?: true

Size: 171 Bytes

Versions: 14

Compression:

Stored size: 171 Bytes

Contents

class Hash
  def each(&block)
    sorted_keys = keys.sort { |a, b| a.to_s <=> b.to_s }
    sorted_keys.each do |key|
      yield key, self[key]
    end
    self
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
refinerycms-0.9.6.34 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.33 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.32 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.31 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.30 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.29 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.28 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.27 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.26 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.25 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.24 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.23 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.22 vendor/plugins/authlogic/test/libs/ordered_hash.rb
refinerycms-0.9.6.21 vendor/plugins/authlogic/test/libs/ordered_hash.rb