Sha256: 65ec4d5261f48ebd5b1c4de15ddcf1245c0663c74352ecbce24e707f1906d9a1

Contents?: true

Size: 207 Bytes

Versions: 56

Compression:

Stored size: 207 Bytes

Contents

module Pact
  module SymbolizeKeys

    def self.included(base)
      base.extend(self)
    end

    def symbolize_keys hash
      hash.inject({}) { |memo, (k,v)| memo[k.to_sym] = v; memo }
    end
  end
end

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
pact-1.0.28 lib/pact/symbolize_keys.rb
pact-1.0.27 lib/pact/symbolize_keys.rb
pact-1.0.26 lib/pact/symbolize_keys.rb
pact-1.0.25 lib/pact/symbolize_keys.rb
pact-1.0.24 lib/pact/symbolize_keys.rb
pact-1.0.23 lib/pact/symbolize_keys.rb
pact-1.0.22 lib/pact/symbolize_keys.rb
pact-1.0.21 lib/pact/symbolize_keys.rb
pact-1.0.20 lib/pact/symbolize_keys.rb
pact-1.0.19 lib/pact/symbolize_keys.rb
pact-1.0.18 lib/pact/symbolize_keys.rb
pact-1.0.15 lib/pact/symbolize_keys.rb
pact-1.0.13 lib/pact/symbolize_keys.rb
pact-1.0.12 lib/pact/symbolize_keys.rb
pact-1.0.11 lib/pact/symbolize_keys.rb
pact-1.0.10 lib/pact/symbolize_keys.rb