Sha256: 438719f9e0e1c782c95c80f8fbeb617c01ef42a5c8e82082c6e2dd607f9cca71
Contents?: true
Size: 249 Bytes
Versions: 21
Compression:
Stored size: 249 Bytes
Contents
class Hash def to_hash_map hm = java.util.HashMap.new if block_given? each do |key, value| hm.put(*yield(key, value)) end else each do |key, value| hm.put key, value end end hm end end
Version data entries
21 entries across 21 versions & 1 rubygems