Sha256: 0eb1475ba55d8a21f1c1ccbd2f31b17c572c73504b49eb91c6c950c430e937eb
Contents?: true
Size: 197 Bytes
Versions: 5
Compression:
Stored size: 197 Bytes
Contents
require 'facets/enumerable/count' class Hash # Like Enumerable#count, but counts hash values. # # {:A=>1, :B=>1}.count(1) #=> 2 # def count(value) values.count(value) end end
Version data entries
5 entries across 5 versions & 1 rubygems