I'd like to set up a convenience Moose role made up of other smaller roles. For example, if I have WithAddress and WithPhone I would like a single WithContacts that provides both WithAddress and WithPhone and anything contact methods I add in the future.
How can I do this with Moose?
package WithContacts;
use Moose::Role;
with qw(WithAddress WithPhone);
# anything else your role should do
no Moose::Role;
1;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With