You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix given_or_derived behavior in Pops Object initialization
The PCore specification states "The given_or_derived
attribute kind states that if the attribute is given
when the object is instantiated this value is used,
otherwise it is a computed value." and "It is
allowed to give the value when instantiating in
which case the given value overrides what would
be the computed value."
The current implementation treats an attribute
with the kind given_or_derived as a required
parameter during initialization (in the
init_hash used in from_asserted_hash or in the
generated `initialize` method).
This change enforces an implicit `value` parameter
of `nil` which causes the generated init_hash
type check and the generated initialize method
to treat given_or_derived attributes as optional.
0 commit comments