in reply to Converting Moose object to a subclass of itself
G'day nysus,
It seems to me that what you want here is Moose::Role.
"Once the object "learns" which type of object it is, ..."
Would "learns which role it's going to take on" be a reasonable paraphrase?
Take a look at the apply_all_roles() function in Moose::Util.
— Ken
|
|---|