=head1 VERSION
-Version 0.10
+Version 0.16
=cut
-our $VERSION = '0.10';
+our $VERSION = '0.16';
=head1 SYNOPSIS
use Moose::Role;
use Moose::Util::TypeConstraints;
+ # MooseX::ClassAttribute is not always present in the consuming class
+ sub add_class_attribute { }
+
around add_class_attribute => sub {
my $next = shift;
my $self = shift;
},
role_metaroles => {
- # applied_attribute should be available soon, for now roles are borked
- # applied_attribute => ['MooseX::AlwaysCoerce::Role::Meta::Attribute'],
+ (Moose->VERSION >= 1.9900
+ ? (applied_attribute => ['MooseX::AlwaysCoerce::Role::Meta::Attribute'])
+ : ()),
role => ['MooseX::AlwaysCoerce::Role::Meta::Class'],
}
);