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

FreeBSD Manual Pages

  
 
  

home | help
Class::Component::CompUsertContributedlPes::Component::Component::Moosenize(3)

NAME
       Class::Component::Component::Moosenize -	you can	Moose like Plugin code

SYNOPSIS
EXPORT METHODS
       requires, with
	     package MyApp;
	     use Class::Component;
	     __PACKAGE__->load_components(qw/ Moosenize	/);

	     package MyApp::Plugin;
	     use base 'Class::Component::Plugin';
	     use MyApp::Role;
	     requires 'foo';
	     requires bar => ['Method'], baz =>	['+Foo::MyAttribute'];
	     requires hop => +{	Method => 'jump' };

	     package MyApp::Role;

	     package MyApp::Role::Blah;
	     use MyApp::Role;
	     requires 'blah';

	     package MyApp::Plugin::Hoge;
	     use base qw( MyApp::Plugin	 );
	     use MyApp::Role;
	     with 'MyApp::Role::Blah';

	     sub foo { # simple	method
	     }

	     sub bar { # same "sub bar :Method {"
	     }

	     sub baz { # same "sub baz :+Foo::MyAttribute {"
	     }

	     sub hop { # same "sub hop :Method('jump') {"
	     }

	     sub blah {	# simple method
	     }

       before after around
	   See also Moose and Moose::Role

AUTHOR
       Kazuhiro	Osawa <ko@yappo.ne.jp>

SEE ALSO
       Class::Component, Moose,	Moose::Role, Class::MOP

LICENSE
       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.32.0			  200Class::Component::Component::Moosenize(3)

NAME | SYNOPSIS | EXPORT METHODS | AUTHOR | SEE ALSO | LICENSE

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

home | help