Sha256: aec3df71ad502b1e3ca0efa078e41562cdd2c7dffefa473ddbe8fd8dda2ba920

Contents?: true

Size: 981 Bytes

Versions: 1

Compression:

Stored size: 981 Bytes

Contents

# frozen_string_literal: true

require 'darthjee/core_ext/hash/key_changeable'
require 'darthjee/core_ext/hash/transposeable'
require 'darthjee/core_ext/hash/transformable'

class Hash
  autoload :ChainFetcher,        'darthjee/core_ext/hash/chain_fetcher'
  autoload :DeepHashConstructor, 'darthjee/core_ext/hash/deep_hash_constructor'
  autoload :KeyChanger,          'darthjee/core_ext/hash/key_changer'
  autoload :KeysSorter,          'darthjee/core_ext/hash/keys_sorter'
  autoload :Squasher,            'darthjee/core_ext/hash/squasher'
  autoload :ValueChanger,        'darthjee/core_ext/hash/value_changer'
  autoload :ToHashMapper,        'darthjee/core_ext/hash/to_hash_mapper'

  include Hash::KeyChangeable
  include Hash::Transposeable
  include Hash::Transformable

  ########################################
  # Fetching methods
  #########################################

  def chain_fetch(*keys, &block)
    ChainFetcher.new(self, *keys, &block).fetch
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
darthjee-core_ext-1.6.2 lib/darthjee/core_ext/hash.rb