Revision history for Perl extension Moose
+0.35
+ * Moose::Meta::Method::Constructor
+ - fix to make sure even Class::MOP attributes
+ are handled correctly (Thanks to autarch)
+ - added test for this
+
0.34 Mon. Jan. 21, 2008
~~~ more misc. doc. fixes ~~~
~~ updated copyright dates ~~
use Carp 'confess';
use Scalar::Util 'blessed', 'weaken', 'looks_like_number';
-our $VERSION = '0.05';
+our $VERSION = '0.06';
our $AUTHORITY = 'cpan:STEVAN';
use base 'Moose::Meta::Method',
# objects, rather than
# Moose::Meta::Attribute. Class::MOP::Attribute attributes
# have no type constraints.
- my @type_constraints = map { $_->type_constraint } @$attrs;
+ my @type_constraints = map { $_->type_constraint } grep { $_->can('type_constraint') } @$attrs;
my @type_constraint_bodies = map {
$_ && $_->_compiled_type_constraint;
} @type_constraints;