bump version to 0.13
[gitmo/MooseX-ClassAttribute.git] / lib / MooseX / ClassAttribute / Meta / Role / Attribute.pm
CommitLineData
88b7f2c8 1package MooseX::ClassAttribute::Meta::Role::Attribute;
2
3use strict;
4use warnings;
5
12a0d4db 6our $VERSION = '0.13';
f77be127 7
88b7f2c8 8use List::MoreUtils qw( uniq );
9
10use namespace::autoclean;
11use Moose;
12
13extends 'Moose::Meta::Role::Attribute';
14
15sub new {
16 my ( $class, $name, %options ) = @_;
17
18 $options{traits} = [
19 uniq( @{ $options{traits} || [] } ),
63fcc508 20 'MooseX::ClassAttribute::Trait::Attribute'
88b7f2c8 21 ];
22
23 return $class->SUPER::new( $name, %options );
24}
25
261;
04b89789 27
28__END__
29
30=pod
31
32=head1 NAME
33
34MooseX::ClassAttribute::Meta::Role::Attribute - An attribute metaclass for class attributes in roles
35
36=head1 DESCRIPTION
37
38This class overrides L<Moose::Meta::Role::Attribute> to support class
39attribute declaration in roles.
40
41=head1 AUTHOR
42
43Dave Rolsky, C<< <autarch@urth.org> >>
44
45=head1 BUGS
46
47See L<MooseX::ClassAttribute> for details.
48
49=head1 COPYRIGHT & LICENSE
50
0cee5df4 51Copyright 2007-2010 Dave Rolsky, All Rights Reserved.
04b89789 52
53This program is free software; you can redistribute it and/or modify
54it under the same terms as Perl itself.
55
56=cut