Sha256: bc48f2e997e66c4d5fac0e122b3b9e805eb55f4ebc7daec385b2c4418612c165
Contents?: true
Size: 249 Bytes
Versions: 16
Compression:
Stored size: 249 Bytes
Contents
# Extends Hash with additional helper methods class Hash # Allows for conversion of string keys to symbols # @return [Hash] hash with symbols for keys def symbolize_keys each_with_object({}) { |(k, v), memo| memo[k.to_sym] = v } end end
Version data entries
16 entries across 16 versions & 1 rubygems