in reply to Re^3: Remove roles for an object in perl moose
in thread Remove roles for an object in perl moose
Thanks fr such a wonderful
reply. The problem actually is, lets assume we ve two modules named car.pm and bike.pm both contain same methods with exactly same names but different functionalities . There is a super class called vehicle.pm which actually decides methods in car.pm should be called or bike.pm should be called based on certain param from the calling script.
this switching should be dynamic like in run time we should be able decide to switch between car and bike objects . So we have decided to assign roles to vehicle.pm to switch roles to Car and bike and one role being at a time. So only there was a need to remove one role when other s active. Please comment
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Remove roles for an object in perl moose
by tobyink (Canon) on Sep 29, 2013 at 23:54 UTC | |
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 |