Sha256: 168835a1ac1847d8c06068aac0dd47a93d284bb061e76049240ffa86a8a50c62

Contents?: true

Size: 514 Bytes

Versions: 5

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

#
# Copyright (c) 2018-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 Bumblebee
  class CoreExt
    # Monkey-patches for the core Hash class.  These will be manually mixed in separately.
    module Hash
      unless method_defined?(:symbolize_keys)
        def symbolize_keys
          map { |k, v| [k.to_sym, v] }.to_h
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bumblebee-3.1.1 lib/bumblebee/core_ext/hash.rb
bumblebee-3.1.0 lib/bumblebee/core_ext/hash.rb
bumblebee-3.1.0.pre.alpha lib/bumblebee/core_ext/hash.rb
bumblebee-3.0.1 lib/bumblebee/core_ext/hash.rb
bumblebee-3.0.0 lib/bumblebee/core_ext/hash.rb