Sha256: 5ad2a42099c75405e40605c64b403c13cd0878572e7e6e19b8a53aa3a469fef5

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

require 'active_support'
require 'active_support/core_ext/hash'

module FeCoreExt::CoreExt
end

module FeCoreExt::CoreExt::Hash
  def snake_symbolize_keys
    transform_keys { |key| key.to_s.snakecase.to_sym }
  end
end

class Hash
  include FeCoreExt::CoreExt::Hash
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fe_core_ext-0.27.0 lib/fe_core_ext/core_ext/hash.rb