Class: TarvitHelpers::HashPresenter::Custom

Inherits:
WithRules show all
Defined in:
lib/tarvit-helpers/modules/hash_presenter/custom.rb

Instance Attribute Summary

Attributes inherited from WithRules

#_rules_holder

Attributes inherited from Simple

#_hash, #_levels, #_parent

Instance Method Summary collapse

Methods inherited from WithRules

#_current_path, #initialize

Methods inherited from Cached

#_value, #initialize

Methods inherited from Simple

#_root?, #initialize, #method_missing

Constructor Details

This class inherits a constructor from TarvitHelpers::HashPresenter::WithRules

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class TarvitHelpers::HashPresenter::Simple

Instance Method Details

#_custom_hashObject



6
7
8
9
10
# File 'lib/tarvit-helpers/modules/hash_presenter/custom.rb', line 6

def _custom_hash
  _rules_holder.rules.each_with_object(_hash.clone) do |rule, res|
    _apply_rule(res, rule, rule.path.clone, [])
  end
end