Sha256: 4728911d9b7cf609634b7f8b1e988a9671ef093014e7c4e3c5048bc4b2be0bdc
Contents?: true
Size: 277 Bytes
Versions: 7
Compression:
Stored size: 277 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({}){|memo,(k,v)| memo[k.to_sym] = v; memo} end end end end
Version data entries
7 entries across 7 versions & 1 rubygems