Moo::Role man page on Darwin

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
Darwin logo
[printable version]

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)
[top]

List of man pages available for Darwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net