Module: ParamsReady::Parameter::ComplexParameter
- Included in:
- AbstractStructParameter, ArrayParameter::ArrayLike, DelegatingParameter, PolymorphParameter
- Defined in:
- lib/params_ready/parameter/parameter.rb
Instance Method Summary collapse
Instance Method Details
#update_child(value, path) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/params_ready/parameter/parameter.rb', line 21 def update_child(value, path) child, child_name, child_path = child_for_update(path) changed, updated = child.update_if_applicable(value, child_path) if frozen? && !changed [false, self] else clone = updated_clone(child_name, updated) [true, clone] end end |