-
-
15 Aug 2021 14:08:39 UTC
- Distribution: MooseX-App
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (454 / 237 / 1)
- Kwalitee
Bus factor: 1- 84.66% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (76.1KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
MooseX::App::Role - Define attributes in a role
SYNOPSIS
package MyApp::Role::SomeRole; use MooseX::App::Role; # Alo loads Moose::Role option 'testattr' => ( isa => 'rw', cmd_tags => [qw(Important! Nice))], );
DESCRIPTION
Enables the 'option' and 'parameter' keywords in your roles.
Alternatively you can also just use attribute traits:
has 'testattr' => ( isa => 'rw', traits => ['AppOption'], # required cmd_type => 'option', # required cmd_tags => [qw(Important! Nice))], );
Module Install Instructions
To install MooseX::App, copy and paste the appropriate command in to your terminal.
cpanm MooseX::App
perl -MCPAN -e shell install MooseX::App
For more information on module installation, please visit the detailed CPAN module installation guide.