# File lib/redis.rb, line 1782 def mapped_hmget(key, *fields) hmget(key, *fields) do |reply| if reply.kind_of?(Array) hash = Hash.new fields.zip(reply).each do |field, value| hash[field] = value end hash else reply end end end