Fixed OrderedHash.inspect
This commit is contained in:
parent
72f7184dd4
commit
77d192183a
@ -53,7 +53,7 @@ class OrderedHash < Hash
|
|||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
str = '{'
|
str = '{'
|
||||||
str << @ordered_keys.collect { |k| "\"#{k}\"=>#{self.[](k).inspect}" }.join(", ")
|
str << (@ordered_keys || []).collect { |k| "\"#{k}\"=>#{self.[](k).inspect}" }.join(", ")
|
||||||
str << '}'
|
str << '}'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user