No description
- Perl 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* Removed __PACKAGE__, since it does not allow
__PACKAGE__->meta->add_method(...) and friends multiple
times because of "make_immutable".
|
||
| lib/MooseX | ||
| t | ||
| .gitignore | ||
| Changes | ||
| Makefile.PL | ||
| README | ||
NAME
MooseX::BatmanBeforeRobin - Ordered Moose sugar
VERSION
0.03
SYNOPSIS
package MyClass;
use MooseX::BatmanBeforeRobin;
extends ...;
with ...;
has ...;
one; # instead of 1;
DESCRIPTION
This class will take over some of the exported functions from Moose and
call them in "the right order":
1: extends()
2: has()
3: with()
4: override()/augment()
5: before()/after()/around()
This is done by stashing the statements away, and applying them once the
"one" function is called.
This module will also export all other functions from Moose, so "use
Moose" is not required.
EXPORTED FUNCTIONS
See Moose.
one
This function should replace "1;" on the last line in your class. It
will call the Moose keywords in "the right order" and afterwards make
the class immutable and clear the namespace, using namespace::autoclean.
METHODS
init_meta
This method is called on "import()" and sets up namespace::autoclean and
Moose.
BUGS
COPYRIGHT & LICENSE
AUTHOR
Jan Henning Thorsen "jhthorsen at cpan.org"