use Moose::AttributeHelpers;
has 'counter' => (
- traits => [qw/Counter/],
+ traits => ['Counter'],
is => 'ro',
isa => 'Int',
default => 0,
use Moose::AttributeHelpers;
has 'options' => (
- traits => [qw/Collection::Array/],
+ traits => ['Collection::Array'],
is => 'ro',
isa => 'ArrayRef[Str]',
default => sub { [] },
use Moose::AttributeHelpers;
has 'options' => (
- traits => [qw/Collection::Hash/],
+ traits => ['Collection::Hash'],
is => 'ro',
isa => 'HashRef[Str]',
default => sub { {} },
use Moose::AttributeHelpers;
has 'integer' => (
- traits => [qw/Number/],
+ traits => ['Number'],
is => 'ro',
isa => 'Int',
default => 5,
use Moose::AttributeHelpers;
has '_options' => (
- traits => [qw/Collection::List/],
+ traits => ['Collection::List'],
is => 'ro',
isa => 'ArrayRef[Int]',
init_arg => 'options',
use Moose::AttributeHelpers;
has 'string' => (
- traits => [qw/String/],
+ traits => ['String'],
is => 'rw',
isa => 'Str',
default => sub {''},