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-support-0.4.2 lib/pact/symbolize_keys.rb
pact-support-0.4.1 lib/pact/symbolize_keys.rb
pact-support-0.4.0 lib/pact/symbolize_keys.rb
pact-support-0.3.1 lib/pact/symbolize_keys.rb
pact-support-0.3.0 lib/pact/symbolize_keys.rb
pact-support-0.2.1 lib/pact/symbolize_keys.rb
pact-support-0.1.4 lib/pact/symbolize_keys.rb
pact-support-0.2.0 lib/pact/symbolize_keys.rb
pact-support-0.1.3 lib/pact/symbolize_keys.rb
pact-support-0.1.2 lib/pact/symbolize_keys.rb
pact-support-0.1.1 lib/pact/symbolize_keys.rb
pact-support-0.1.0 lib/pact/symbolize_keys.rb
pact-support-0.0.4 lib/pact/symbolize_keys.rb
pact-support-0.0.3 lib/pact/symbolize_keys.rb
pact-support-0.0.2 lib/pact/symbolize_keys.rb
pact-support-0.0.1 lib/pact/symbolize_keys.rb
pact-1.3.3 lib/pact/symbolize_keys.rb
pact-1.3.2 lib/pact/symbolize_keys.rb
pact-1.3.1 lib/pact/symbolize_keys.rb
pact-1.3.0 lib/pact/symbolize_keys.rb