Sha256: 8d6cbff469c352f00053d264a4b5616741466fd73e9026bf8ca0cfd345459491
Contents?: true
Size: 482 Bytes
Versions: 6
Compression:
Stored size: 482 Bytes
Contents
require 'json' require 'json-schema' require 'time' require 'har/error' require 'har/version' require 'har/serializable' require 'har/schema_type' require 'har/page' require 'har/archive' require 'har/viewer' 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
har-0.0.8 | lib/har.rb |
har-0.0.7 | lib/har.rb |
har-0.0.6 | lib/har.rb |
har-0.0.5 | lib/har.rb |
har-0.0.4 | lib/har.rb |
har-0.0.3 | lib/har.rb |