in reply to Re^4: Remove roles for an object in perl moose
in thread Remove roles for an object in perl moose
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Remove roles for an object in perl moose
by rbala (Acolyte) on Oct 01, 2013 at 09:12 UTC | |
by tobyink (Canon) on Oct 01, 2013 at 21:47 UTC | |
by tobyink (Canon) on Oct 01, 2013 at 19:03 UTC |