Sha256: d6e4f3d38361839c529142f2b96131ab3510d42f96757cd05d7616a6250388cb

Contents?: true

Size: 162 Bytes

Versions: 7

Compression:

Stored size: 162 Bytes

Contents

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

7 entries across 6 versions & 1 rubygems

Version Path
facets-2.9.3 lib/core/facets/hash/count.rb
facets-2.9.2 lib/core/facets/hash/count.rb
facets-2.9.2 src/core/facets/hash/count.rb
facets-2.9.1 lib/core/facets/hash/count.rb
facets-2.9.0 lib/core/facets/hash/count.rb
facets-2.9.0.pre.2 lib/core/facets/hash/count.rb
facets-2.9.0.pre.1 lib/core/facets/hash/count.rb