Class: ComputedModel::NormalizableArray
- Inherits:
-
Array
- Object
- Array
- ComputedModel::NormalizableArray
- Defined in:
- lib/computed_model.rb
Overview
Convenience class to easily access normalized version of dependencies.
You don't need to directly use it.
- Model#current_subfields returns NormalizableArray.
- Procs passed to Model::ClassMethods#dependency will receive NormalizeArray.
Instance Method Summary collapse
-
#normalized ⇒ Hash{Symbol=>Array}
Returns the normalized hash of the dependencies.
Instance Method Details
#normalized ⇒ Hash{Symbol=>Array}
Returns the normalized hash of the dependencies.
98 99 100 |
# File 'lib/computed_model.rb', line 98 def normalized @normalized ||= ComputedModel.normalize_dependencies(ComputedModel.filter_subfields(self)) end |