When declaring an attribute, you can declare a metaclass or a set of
traits for the attribute:
- use Moose::AttributeHelpers;
-
has 'mapping' => (
metaclass => 'Hash',
is => 'ro',
This option only works if your attribute is explicitly typed as an
C<ArrayRef> or C<HashRef>.
-However, we recommend that you use L<MooseX::AttributeHelpers> for
-these types of attributes, which gives you much more control over how
+However, we recommend that you use L<Moose::Meta::Attribute::Native> traits
+for these types of attributes, which gives you much more control over how
they are accessed and manipulated.
=head2 Initializer