In Metamodel::Primitives§
See primary documentation in context for method rebless.
method rebless(Mu $object, Mu $type)
Changes $object
to be of type $type
. This only works if $type
type-checks against the current type of $object
, and if the storage of $object
is a subset of that of $type
. [1]