From: Matt S Trout Date: Sat, 7 Apr 2012 14:58:12 +0000 (+0000) Subject: elide asserter since it's only used internally by handles X-Git-Tag: v0.009_015~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f8d65713766152ffe31ebf38f6d5acccd8ab2174;p=gitmo%2FMoo.git elide asserter since it's only used internally by handles --- diff --git a/lib/Moo/HandleMoose.pm b/lib/Moo/HandleMoose.pm index ed2e885..f89325a 100644 --- a/lib/Moo/HandleMoose.pm +++ b/lib/Moo/HandleMoose.pm @@ -46,6 +46,7 @@ sub inject_real_metaclass_for { foreach my $name (keys %$attr_specs) { my %spec = %{$attr_specs->{$name}}; $spec{is} = 'ro' if $spec{is} eq 'lazy' or $spec{is} eq 'rwp'; + delete $spec{asserter}; if (my $isa = $spec{isa}) { $spec{isa} = do { if (my $mapped = $TYPE_MAP{$isa}) {