Sha256: 295e2a23b2913aeeec194a6fffe5b497d1888fe6ccba5e1887f9267e26dd12d6
Contents?: true
Size: 284 Bytes
Versions: 1
Compression:
Stored size: 284 Bytes
Contents
unless {a: 1}.respond_to?(:fetch_values) class Hash def fetch_values(*keys) result = [] keys.each do |k| result << if block_given? yield(self[k]) else self[k] end end result end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fat_table-0.2.6 | lib/fat_table/patches.rb |