use Moose::Role;
-
-before '_process_options' => sub
-{
+before _process_options => sub {
my $class = shift;
my $name = shift;
my $options = shift;
- if ( exists $options->{is} &&
- ! ( exists $options->{reader} || exists $options->{writer} ) )
- {
+ if ( exists $options->{is}
+ && !( exists $options->{reader} || exists $options->{writer} ) ) {
my $get;
my $set;
- if ( $name =~ s/^_// )
- {
+ if ( $name =~ s/^_// ) {
$get = '_get_';
$set = '_set_';
}
- else
- {
+ else {
$get = 'get_';
$set = 'set_';
}
$options->{reader} = $get . $name;
- if ( $options->{is} eq 'rw' )
- {
+ if ( $options->{is} eq 'rw' ) {
$options->{writer} = $set . $name;
}