class ComputedModel::NormalizableArray
Convenience class to easily access normalized version of dependencies.
You don't need to directly use it.
-
{ComputedModel::Model#current_subfields} returns
NormalizableArray
. -
Procs passed to {ComputedModel::Model::ClassMethods#dependency} will receive NormalizeArray.
Public Instance Methods
normalized()
click to toggle source
Returns the normalized hash of the dependencies. @return [Hash{Symbol=>Array}] the normalized hash of the dependencies @raise [RuntimeError] if the list isn't valid as a dependency list.
See {ComputedModel.normalize_dependencies} for details.
# File lib/computed_model.rb, line 98 def normalized @normalized ||= ComputedModel.normalize_dependencies(ComputedModel.filter_subfields(self)) end