Skip to content

Commit

Permalink
Specify ::Hash in Lotus::Utils::Kernel.Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Jul 9, 2014
1 parent 25e101e commit 6333287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lotus/utils/kernel.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 6333287

Please sign in to comment.