Perhaps MooseX::ABC is what you are looking for?
You should be able to extend your abstract base class with other abstract classes too (like you show in your example in here). You should also note that roles can be composed of other roles, so this will do what your looking for:
package WidgetRole; use Moose::Role; requires 'get_widget_type'; package AbstractWidget; use Moose::Role; with 'WidgetRole'; package SnazzyWidget; use Moose; with 'AbstractWidget'; sub get_widget_type{ "BasicWidget" }
In reply to Re: Abstract Methods in Moose
by stvn
in thread Abstract Methods in Moose
by crashtest
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |