X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FMethod%2FAccessor.pm;h=189156e106b45289f5c5a6c645367af3fec5fc8d;hb=f5bc97e5bbde4f29f52d85ac7c03251665dfd52b;hp=65835a04c3477fc31396b7141872ccaa13d11901;hpb=46cb090ff626142f0b7d094b91ce45c15dc98f14;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Accessor.pm b/lib/Moose/Meta/Method/Accessor.pm index 65835a0..189156e 100644 --- a/lib/Moose/Meta/Method/Accessor.pm +++ b/lib/Moose/Meta/Method/Accessor.pm @@ -4,14 +4,17 @@ package Moose::Meta::Method::Accessor; use strict; use warnings; -our $VERSION = '0.57'; +our $VERSION = '0.60'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use base 'Moose::Meta::Method', 'Class::MOP::Method::Accessor'; -## Inline method generators +sub _error_thrower { + my $self = shift; + ( ref $self && $self->associated_attribute ) || $self->SUPER::_error_thrower(); +} sub _eval_code { my ( $self, $code ) = @_;