Sha256: 9a135b698ecb60111634205e558318607bb1a598ba95f99c57f64f0cfb0461f6

Contents?: true

Size: 332 Bytes

Versions: 1

Compression:

Stored size: 332 Bytes

Contents

# frozen_string_literal: true

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

module FeCoreExt::CoreExt
end

module FeCoreExt::CoreExt::Hash
  def rename_key(original_key, new_key)
    self[new_key] = delete(original_key) if key?(original_key)
    self
  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.29.0 lib/fe_core_ext/core_ext/hash.rb