Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhthorsen/moosex-batmanbeforerobin
Ordered Moose sugar
https://github.com/jhthorsen/moosex-batmanbeforerobin
Last synced: 27 days ago
JSON representation
Ordered Moose sugar
- Host: GitHub
- URL: https://github.com/jhthorsen/moosex-batmanbeforerobin
- Owner: jhthorsen
- Created: 2010-09-08T12:49:32.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-09-12T19:55:35.000Z (over 14 years ago)
- Last Synced: 2024-10-16T11:58:42.895Z (3 months ago)
- Language: Perl
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
MooseX::BatmanBeforeRobin - Ordered Moose sugarVERSION
0.03SYNOPSIS
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"