You want to model vehicles that can convert themselves into other vehicles? Like the batmobile?
Because if not, then you're going about this the wrong way. You shouldn't be converting cars into bikes and vice versa. You should just have car objects and bike objects.
Further, if seems you have Vehicle as a class and Car and Bike as roles. That should be the other way around; Vehicle should be a role that Car and Bike both do.
In reply to Re^5: Remove roles for an object in perl moose
by tobyink
in thread Remove roles for an object in perl moose
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |