提交 e1f679a0 编写于 作者: J Jeremy Kemper

Simplify json decoder backend lazy load

上级 6e73cf6b
......@@ -9,11 +9,9 @@ class << self
delegate :decode, :to => :backend
def backend
@backend || begin
self.backend = "Yaml"
self.backend = "Yaml" unless defined?(@backend)
@backend
end
end
def backend=(name)
if name.is_a?(Module)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册