X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FAttribute%2FNative%2FTrait.pm;h=aa400dff616861d416444ed7b03468be29c510f5;hb=55d05fb16429c2150b5337b1a0130ae334e129d0;hp=2bfee7c095209a62682bbf1c89a6505a15702525;hpb=9039e8ec60c872fa009efedd3b7b311128d1fc4b;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Attribute/Native/Trait.pm b/lib/Moose/Meta/Attribute/Native/Trait.pm index 2bfee7c..aa400df 100644 --- a/lib/Moose/Meta/Attribute/Native/Trait.pm +++ b/lib/Moose/Meta/Attribute/Native/Trait.pm @@ -3,7 +3,7 @@ package Moose::Meta::Attribute::Native::Trait; use Moose::Role; use Moose::Util::TypeConstraints; -our $VERSION = '0.89_01'; +our $VERSION = '1.12'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -28,15 +28,12 @@ has 'method_constructors' => ( my $method_provider = $self->method_provider->meta; return +{ map { - $_ => $method_provider->get_method($_) - } $method_provider->get_method_list + $_->name => $_ + } $method_provider->_get_local_methods }; }, ); -has '+default' => ( required => 1 ); -has '+type_constraint' => ( required => 1 ); - # methods called prior to instantiation before '_process_options' => sub { @@ -138,13 +135,15 @@ __END__ =head1 NAME -Moose::Meta::Attribute::Native::Trait - base role for helpers +Moose::Meta::Attribute::Native::Trait - Base role for helpers =head1 BUGS -All complex software has bugs lurking in it, and this module is no -exception. If you find a bug please either email me, or add the bug -to cpan-RT. +See L for details on reporting bugs. + +=head1 SEE ALSO + +Documentation for Moose native traits starts at L =head1 AUTHORS