Fixed OrderedHash.inspect

This commit is contained in:
Jim Menard 2009-01-09 19:49:27 -05:00
parent 72f7184dd4
commit 77d192183a
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class OrderedHash < Hash
def inspect
str = '{'
str << @ordered_keys.collect { |k| "\"#{k}\"=>#{self.[](k).inspect}" }.join(", ")
str << (@ordered_keys || []).collect { |k| "\"#{k}\"=>#{self.[](k).inspect}" }.join(", ")
str << '}'
end