Sha256: fe9e929c6f2d2601fc3d58eb99d8962e180cbd802cce02b09e30b269976e580e

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

Version Path
koine-attributes-1.2.4 lib/koine/attributes/hash_helper.rb