moo::role(3) osx man page | unix.com

Man Page: moo::role

Operating Environment: osx

Section: 3

Moo::Role(3)						User Contributed Perl Documentation					      Moo::Role(3)

NAME
Moo::Role - Minimal Object Orientation support for Roles
SYNOPSIS
package My::Role; use Moo::Role; sub foo { ... } sub bar { ... } has baz => ( is => 'ro', ); 1; And elsewhere: package Some::Class; use Moo; # bar gets imported, but not foo with('My::Role'); sub foo { ... } 1;
DESCRIPTION
"Moo::Role" builds upon Role::Tiny, so look there for most of the documentation on how this works. The main addition here is extra bits to make the roles more "Moosey;" which is to say, it adds "has".
IMPORTED SUBROUTINES
See "IMPORTED SUBROUTINES" in Role::Tiny for all the other subroutines that are imported by this module. has has attr => ( is => 'ro', ); Declares an attribute for the class to be composed into. See "has" in Moo for all options.
AUTHORS
See Moo for authors.
COPYRIGHT AND LICENSE
See Moo for the copyright and license. perl v5.16.2 2012-10-08 Moo::Role(3)
Related Man Pages
moosex::role::parameterized::extending(3) - mojave
moosex::role::parameterized::meta::role::parameterizable(3) - osx
moosex::role::parameterized::extending(3) - osx
mouse::role(3pm) - debian
role::tiny(3pm) - debian
Similar Topics in the Unix Linux Community
Mac OS X: Based on UNIX - Solid As a Rock
At A Glance Coloured Real Time Bargraph Generator...
A dash to GOTO or a dash from GOTO, that is the question...
Syntax error in subtraction in Bash
Python: Refer a properties file from different location