Sha256: 19ed164cf9aca42fa5a90dae6c2139a723c0f137fe7d0e06c87067327b29e22e
Contents?: true
Size: 545 Bytes
Versions: 3
Compression:
Stored size: 545 Bytes
Contents
# frozen_string_literal: true # # Copyright (c) 2019-present, Blue Marble Payroll, LLC # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # module ActsAsHashable # Let's provide a refinenment instead of monkey-patching Hash. That way we can stop # polluting other libraries and internalize our specific needs. module HashRefinements # :nodoc: all refine Hash do def symbolize_keys map { |k, v| [k.to_sym, v] }.to_h end end end end
Version data entries
3 entries across 3 versions & 1 rubygems