Sha256: 587544a44aebac58fbc751a316fd880dbe843f4cd32b20b3a98f9ba01493deea

Contents?: true

Size: 245 Bytes

Versions: 19

Compression:

Stored size: 245 Bytes

Contents

module Koine
  module Attributes
    class HashHelper
      def symbolize_keys(hash)
        {}.tap do |new_hash|
          hash.each do |key, value|
            new_hash[key.to_sym] = value
          end
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
koine-attributes-1.2.3 lib/koine/attributes/hash_helper.rb
koine-attributes-1.2.2 lib/koine/attributes/hash_helper.rb
koine-attributes-1.2.1 lib/koine/attributes/hash_helper.rb
koine-attributes-1.2.0 lib/koine/attributes/hash_helper.rb
koine-attributes-1.1.0 lib/koine/attributes/hash_helper.rb
koine-attributes-1.0.0 lib/koine/attributes/hash_helper.rb
koine-attributes-0.4.0 lib/koine/attributes/hash_helper.rb
koine-attributes-0.3.2 lib/koine/attributes/hash_helper.rb
koine-attributes-0.3.1 lib/koine/attributes/hash_helper.rb
koine-attributes-0.3.0 lib/koine/attributes/hash_helper.rb
koine-attributes-0.2.3 lib/koine/attributes/hash_helper.rb
koine-attributes-0.2.2 lib/koine/attributes/hash_helper.rb
koine-attributes-0.2.1 lib/koine/attributes/hash_helper.rb
koine-attributes-0.2.0 lib/koine/attributes/hash_helper.rb
koine-attributes-0.1.4 lib/koine/attributes/hash_helper.rb
koine-attributes-0.1.3 lib/koine/attributes/hash_helper.rb
koine-attributes-0.1.2 lib/koine/attributes/hash_helper.rb
koine-attributes-0.1.1 lib/koine/attributes/hash_helper.rb
koine-attributes-0.1.0 lib/koine/attributes/hash_helper.rb