Sha256: 5ede0fa0d67327b8f3935dc0dec93ab9d0e693de950e2f05de6f27b7acb64bcf
Contents?: true
Size: 536 Bytes
Versions: 4
Compression:
Stored size: 536 Bytes
Contents
require 'json' require 'jschematic' require 'time' require 'har/error' require 'har/version' require 'har/serializable' require 'har/schema_type' require 'har/page' require 'har/archive' require 'har/viewer' require 'har/extensions/jschematic/attributes/format' module Enumerable def group_by assoc = {} each do |element| key = yield(element) if assoc.has_key?(key) assoc[key] << element else assoc[key] = [element] end end assoc end unless [].respond_to?(:group_by) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
har-0.1.2 | lib/har.rb |
har-0.1.1 | lib/har.rb |
har-0.1.0 | lib/har.rb |
har-0.0.9 | lib/har.rb |