use Moose::Role;
use Moose::Util::TypeConstraints;
-our $VERSION = '0.89';
+our $VERSION = '0.96';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
},
);
-has '+default' => ( required => 1 );
-has '+type_constraint' => ( required => 1 );
-
# methods called prior to instantiation
before '_process_options' => sub {
my $next = shift;
my ( $self, $handle_name, $method_to_call ) = @_;
- my ( $name, $curried_args ) = @$method_to_call;
-
- $curried_args ||= [];
+ my ( $name, @curried_args ) = @$method_to_call;
my $method_constructors = $self->method_constructors;
$handle_name,
sub {
my $instance = shift;
- return $code->( $instance, @$curried_args, @_ );
+ return $code->( $instance, @curried_args, @_ );
},
);
};
=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<Moose/BUGS> for details on reporting bugs.
+
+=head1 SEE ALSO
+
+Documentation for Moose native traits starts at L<Moose::Meta::Attribute Native>
=head1 AUTHORS