'curries',
);
+our @CARP_NOT = qw(Mouse::Meta::Class);
+
sub new {
my $class = shift;
my $name = shift;
# (3) bad options found
if(@bad){
- @bad = sort @bad;
- local $Carp::Internal{'Mouse'} = 1;
- local $Carp::Internal{'Mouse::Meta::Class'} = 1;
- Carp::carp("Found unknown argument(s) passed to '$name' attribute constructor in '$class': @bad");
+ Carp::carp(
+ "Found unknown argument(s) passed to '$name' attribute constructor in '$class': "
+ . Mouse::Util::english_list(@bad));
}
my $self = bless $args, $class;
}
sub canonicalize_args{ # DEPRECATED
- my ($self, $name, %args) = @_;
+ #my($self, $name, %args) = @_;
+ my($self, undef, %args) = @_;
Carp::cluck("$self->canonicalize_args has been deprecated."
. "Use \$self->_process_options instead.");
}
sub create { # DEPRECATED
- my ($self, $class, $name, %args) = @_;
+ #my($self, $class, $name, %args) = @_;
+ my($self) = @_;
Carp::cluck("$self->create has been deprecated."
. "Use \$meta->add_attribute and \$attr->install_accessors instead.");
}
sub _coerce_and_verify {
- my($self, $value, $instance) = @_;
+ #my($self, $value, $instance) = @_;
+ my($self, $value) = @_;
my $type_constraint = $self->{type_constraint};
return $value if !defined $type_constraint;
sub associate_method{
- my ($attribute, $method_name) = @_;
+ #my($attribute, $method_name) = @_;
+ my($attribute) = @_;
$attribute->{associated_methods}++;
return;
}
return;
}
-sub delegation_metaclass() { 'Mouse::Meta::Method::Delegation' }
+sub delegation_metaclass() { ## no critic
+ 'Mouse::Meta::Method::Delegation'
+}
sub _canonicalize_handles {
my($self, $handles) = @_;
=head1 VERSION
-This document describes Mouse version 0.50_03
+This document describes Mouse version 0.55
=head1 METHODS