From 6333287a014811c1f3d578e6037605bc3072c791 Mon Sep 17 00:00:00 2001 From: Luca Guidi Date: Wed, 9 Jul 2014 11:05:57 +0200 Subject: [PATCH] Specify ::Hash in Lotus::Utils::Kernel.Hash --- lib/lotus/utils/kernel.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lotus/utils/kernel.rb b/lib/lotus/utils/kernel.rb index eea7720d..197a051a 100644 --- a/lib/lotus/utils/kernel.rb +++ b/lib/lotus/utils/kernel.rb @@ -190,7 +190,7 @@ def self.Hash(arg) def self.Hash(arg) case arg when ::Hash then arg - when ::Array, ::Set then Hash[*self.Array(arg)] + when ::Array, ::Set then ::Hash[*self.Array(arg)] when ->(a) { a.respond_to?(:to_h) } then arg.to_h else super(arg)