X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoo%2FHandleMoose.pm;h=ed2e8855a55d0cdbb0851e2f01d170e0fbcaed17;hb=2bb6aaa3ef3d4a9ec015b5198411014ee731419d;hp=5c7cd4bf77a21ff80800f2d5ad4002a34a21e807;hpb=e8dc52018eeed58688ed4d0fd233d4ac4837d7b2;p=gitmo%2FMoo.git diff --git a/lib/Moo/HandleMoose.pm b/lib/Moo/HandleMoose.pm index 5c7cd4b..ed2e885 100644 --- a/lib/Moo/HandleMoose.pm +++ b/lib/Moo/HandleMoose.pm @@ -45,7 +45,7 @@ sub inject_real_metaclass_for { local @{_getstash($name)}{keys %methods}; foreach my $name (keys %$attr_specs) { my %spec = %{$attr_specs->{$name}}; - $spec{is} = 'ro' if $spec{is} eq 'lazy'; + $spec{is} = 'ro' if $spec{is} eq 'lazy' or $spec{is} eq 'rwp'; if (my $isa = $spec{isa}) { $spec{isa} = do { if (my $mapped = $TYPE_MAP{$isa}) {