MooseX::Aliases::Meta::Trait::Attribute - attribute metaclass trait for MooseX::Aliases
version 0.07
package MyApp::Role; our $VERSION = '0.07'; use Moose::Role; use MooseX::Aliases; has this => ( isa => 'Str', is => 'rw', traits => [qw(Aliased)], alias => 'that', );
This trait adds the alias option to attribute creation. It is automatically applied to all attributes when use MooseX::Aliases; is run, but must be explicitly applied in roles, due to issues with Moose's handling of attributes in roles.
alias
use MooseX::Aliases;
Jesse Luehrs <doy at tozt dot net> Chris Prather (chris@prather.org) Justin Hunter <justin.d.hunter at gmail dot com>
This software is copyright (c) 2009 by Jesse Luehrs.
This is free software; you can redistribute it and/or modify it under the same terms as perl itself.
To install MooseX::Aliases, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Aliases
CPAN shell
perl -MCPAN -e shell install MooseX::Aliases
For more information on module installation, please visit the detailed CPAN module installation guide.