Class: TarvitHelpers::HashPresenter::Custom
- Defined in:
- lib/tarvit-helpers/modules/hash_presenter/custom.rb
Instance Attribute Summary
Attributes inherited from WithRules
Attributes inherited from Simple
Instance Method Summary collapse
Methods inherited from WithRules
Methods inherited from Cached
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_hash ⇒ Object
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 |