use Scalar::Util 'blessed', 'weaken';
use overload ();
-our $VERSION = '0.76';
+our $VERSION = '0.79';
our $AUTHORITY = 'cpan:STEVAN';
use Moose::Meta::Method::Accessor;
$class->throw_error("You can not use lazy_build and default for the same attribute ($name)", data => $options)
if exists $options->{default};
$options->{lazy} = 1;
- $options->{required} = 1;
$options->{builder} ||= "_build_${name}";
if ($name =~ /^_/) {
$options->{clearer} ||= "_clear${name}";
}
}
else {
- my $role_meta = Class::MOP::load_class($handles);
+ Class::MOP::load_class($handles);
+ my $role_meta = Class::MOP::class_of($handles);
(blessed $role_meta && $role_meta->isa('Moose::Meta::Role'))
|| $self->throw_error("Unable to canonicalize the 'handles' option with $handles because its metaclass is not a Moose::Meta::Role", data => $handles);