use Moose::Util 'english_list';
use Scalar::Util 'weaken', 'blessed';
-our $VERSION = '1.17';
-$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
use base 'Moose::Meta::Role::Application';
sub apply_attributes {
my ($self, $role, $class) = @_;
- my $attr_metaclass = $class->attribute_metaclass;
+ my $attr_metaclass = $role->applied_attribute_metaclass;
foreach my $attribute_name ($role->get_attribute_list) {
# it if it has one already
1;
+# ABSTRACT: Compose a role into a class
+
__END__
=pod
-=head1 NAME
-
-Moose::Meta::Role::Application::ToClass - Compose a role into a class
-
=head1 DESCRIPTION
=head2 METHODS
See L<Moose/BUGS> for details on reporting bugs.
-=head1 AUTHOR
-
-Stevan Little E<lt>stevan@iinteractive.comE<gt>
-
-=head1 COPYRIGHT AND LICENSE
-
-Copyright 2006-2010 by Infinity Interactive, Inc.
-
-L<http://www.iinteractive.com>
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
=cut