Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MooseX::App::Role(3)  User Contributed Perl Documentation MooseX::App::Role(3)

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))],
	);

perl v5.24.1			  2016-12-18		  MooseX::App::Role(3)

NAME | SYNOPSIS | DESCRIPTION

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=MooseX::App::Role&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help