Sha256: eb99ce74d5760439b6564fc23966301da5803eb8cd6bad11fd7a3a0fd86b6995

Contents?: true

Size: 133 Bytes

Versions: 6

Compression:

Stored size: 133 Bytes

Contents

unless [].respond_to?(:freq)
  class Array
    def freq
      k = Hash.new(0)
      each { |e| k[e] += 1 }
      k
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
make_taggable-0.7.1 spec/support/array.rb
make_taggable-0.7.0 spec/support/array.rb
make_taggable-0.6.6 spec/support/array.rb
make_taggable-0.6.5 spec/support/array.rb
make_taggable-0.6.4 spec/support/array.rb
make_taggable-0.6.3 spec/support/array.rb