Hi,
How does one get the helper traits for a parameterized type? Here I am using
the helper:
Moose::Meta::Attribute::Native::Trait::Hash
For HashRef
The hash actually contains parameterized CodeRefs so I would like to use:
Moose::Meta::Attribute::Native::Trait::Code
For CodeRef
Is this possible?
Thanks
has 'actions' => (
traits => ['Hash'],
is => 'rw',
isa => 'HashRef[CodeRef]',
required => 0,
handles => {
set_actions => 'set',
get_actions => 'get',
delete_action => 'delete',
keys_actions => 'keys',
exists_action => 'exists',
defined_action => 'defined',
values_actions => 'values',
pairs_actions => 'kv',
elements_actions => 'elements',
clear_actions => 'clear',
num_actions => 'count',
has_no_actions => 'is_empty',
accessor_actions => 'accessor',
},
);