module FastSerializer::Utils

Public Class Methods

ref_merge(hash_a, hash_b) click to toggle source
# File lib/fast_serializer/utils.rb, line 11
def self.ref_merge(hash_a, hash_b)
  hash_b.each do |key, value|
    hash_a[key] = value
  end
end
symbolize_keys(hash) click to toggle source
# File lib/fast_serializer/utils.rb, line 5
def self.symbolize_keys(hash)
  res = {}
  hash.each { |key, value| res[key.to_sym] = value }
  hash
end