Module: Darthjee::CoreExt::Hash

Includes:
KeyChangeable, Transformable, Transposeable
Included in:
Hash
Defined in:
lib/darthjee/core_ext/hash.rb,
lib/darthjee/core_ext/hash/squasher.rb,
lib/darthjee/core_ext/hash/key_changer.rb,
lib/darthjee/core_ext/hash/keys_sorter.rb,
lib/darthjee/core_ext/hash/chain_fetcher.rb,
lib/darthjee/core_ext/hash/transformable.rb,
lib/darthjee/core_ext/hash/transposeable.rb,
lib/darthjee/core_ext/hash/value_changer.rb,
lib/darthjee/core_ext/hash/key_changeable.rb,
lib/darthjee/core_ext/hash/to_hash_mapper.rb,
lib/darthjee/core_ext/hash/deep_hash_constructor.rb

Defined Under Namespace

Modules: KeyChangeable, Squasher, Transformable, Transposeable Classes: ChainFetcher, DeepHashConstructor, KeyChanger, KeysSorter, ToHashMapper, ValueChanger

Instance Method Summary collapse

Methods included from Transformable

#exclusive_merge, #exclusive_merge!, #map_to_hash, #squash, #to_deep_hash

Methods included from Transposeable

#transpose, #transpose!

Methods included from KeyChangeable

#append_to_keys, #camelize_keys, #camelize_keys!, #chain_change_keys, #chain_change_keys!, #change_keys, #change_keys!, #change_values, #change_values!, #lower_camelize_keys, #lower_camelize_keys!, #prepend_to_keys, #remap_keys, #remap_keys!, #sort_keys, #underscore_keys, #underscore_keys!

Instance Method Details

#chain_fetch(*keys, &block) ⇒ Object

Fetching methods



26
27
28
# File 'lib/darthjee/core_ext/hash.rb', line 26

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