1 package MooseX::FollowPBP::Role::Attribute;
9 before '_process_options' => sub
15 if ( exists $options->{is} &&
16 ! ( exists $options->{reader} || exists $options->{writer} ) )
21 if ( $name =~ s/^_// )
32 $options->{reader} = $get . $name;
34 if ( $options->{is} eq 'rw' )
36 $options->{writer} = $set . $name;
39 delete $options->{is};
49 Moose::Util::MetaRole::apply_metaclass_roles
50 ( for_class => $p{for_class},
51 attribute_metaclass_roles =>
52 ['MooseX::FollowPBP::Role::Attribute'],
57 This role applies a method modifier to the C<_process_options()>
58 method, and tweaks the reader and writer parameters so that they
59 follow the style recommended in I<Perl Best Practices>.