use Moose::Util::MetaRole;
use MooseX::FollowPBP::Role::Attribute;
-Moose::Exporter->setup_import_methods(
+my %metaroles = (
class_metaroles => {
attribute => ['MooseX::FollowPBP::Role::Attribute'],
},
- role_metaroles => {
- applied_attribute => ['MooseX::FollowPBP::Role::Attribute'],
- },
);
+$metaroles{role_metaroles} = {
+ applied_attribute => ['MooseX::FollowPBP::Role::Attribute'],
+} if $Moose::VERSION >= 1.9900;
+
+Moose::Exporter->setup_import_methods(%metaroles);
+
1;
# ABSTRACT: Name your accessors get_foo() and set_foo()