提交 364b5348 编写于 作者: G Greg Ose

support indifferent access for hashes stored within FlashHash

上级 14da2035
...@@ -95,7 +95,12 @@ def []=(k, v) #:nodoc: ...@@ -95,7 +95,12 @@ def []=(k, v) #:nodoc:
end end
def [](k) def [](k)
super(k.to_s) v = super(k.to_s)
if v.is_a? Hash
v.with_indifferent_access
else
v
end
end end
def delete(k) def delete(k)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册