Fixed OrderedHash.inspect
This commit is contained in:
parent
72f7184dd4
commit
77d192183a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue