Permalink
Browse files

add an inspect method to OrderedHash to make it clear that it is not …

…a species of Array

Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1782 state:committed]
  • Loading branch information...
1 parent 4ef9845 commit f4bf318db061daa8c6ebb2b700fd15034e031310 Greg Borenstein committed with NZKoz Jan 19, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 activesupport/lib/active_support/ordered_hash.rb
@@ -92,6 +92,10 @@ def merge(other_hash)
dup.merge!(other_hash)
end
+ def inspect
+ "#<OrderedHash #{self.to_hash.inspect}>"
+ end
+
private
def sync_keys!

0 comments on commit f4bf318

Please sign in to comment.