# File test-unit-3.3.7/lib/test/unit/assertions.rb, line 1912 def initialize(hash, inspected_objects) @inspected_objects = inspected_objects @hash = {} hash.each do |key, value| key = Inspector.cached_new(key, @inspected_objects) value = Inspector.cached_new(value, @inspected_objects) @hash[key] = value end end
# File test-unit-3.3.7/lib/test/unit/assertions.rb, line 1945 def each_pair keys = @hash.keys begin keys = keys.sort # FIXME: more cleverly rescue ArgumentError end keys.each do |key| yield(key, @hash[key]) end end
# File test-unit-3.3.7/lib/test/unit/assertions.rb, line 1922 def inspect @hash.inspect end