Sha256: 0d7ddc4c8efcfdeb1cbf774d804083ea18111e5aedbdc057e38ef61450363eb8
Contents?: true
Size: 312 Bytes
Versions: 5
Compression:
Stored size: 312 Bytes
Contents
# frozen_string_literal: true module Nsrr module Helpers # Converts hash with string keys into hash with keys as symbols. class HashHelper def self.symbolize_keys(hash) hash.inject({}) do |memo, (k, v)| memo[k.to_sym] = v memo end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems