debian man page for moo::role

Query: moo::role

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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

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; else where 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.14.2 2012-06-26 Moo::Role(3pm)
Related Man Pages
moo::role5.18(3) - mojave
moo::role(3) - mojave
moose::meta::role::method::required(3) - osx
role::tiny(3) - osx
moose::meta::role::composite(3pm) - debian
Similar Topics in the Unix Linux Community
Adding the individual columns of a matrix.
Introduction
Find columns in a file based on header and print to new file
Weird 'find' results
New UNIX and Linux History Sections