-
-
12 May 2008 08:58:08 UTC
- Distribution: Class-Component
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (3573 / 148 / 2)
- Kwalitee
Bus factor: 0- 65.42% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (37.48KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Carp::Clan
- Class::Accessor::Fast
- Class::Data::Inheritable
- Class::Inspector
- UNIVERSAL::require
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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.
Module Install Instructions
To install Class::Component, copy and paste the appropriate command in to your terminal.
cpanm Class::Component
perl -MCPAN -e shell install Class::Component
For more information on module installation, please visit the detailed CPAN module installation guide.