No description
This repository has been archived on 2026-08-22. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Henning Thorsen c1684aca53 0.03 Sun Sep 12 13:54:56 CEST 2010
* Removed __PACKAGE__, since it does not allow
         __PACKAGE__->meta->add_method(...) and friends multiple
         times because of "make_immutable".
2010-09-12 13:54:57 +02:00
lib/MooseX 0.03 Sun Sep 12 13:54:56 CEST 2010 2010-09-12 13:54:57 +02:00
t 0.03 Sun Sep 12 13:54:56 CEST 2010 2010-09-12 13:54:57 +02:00
.gitignore add .gitignore 2010-05-13 00:15:19 +02:00
Changes 0.03 Sun Sep 12 13:54:56 CEST 2010 2010-09-12 13:54:57 +02:00
Makefile.PL renamed to MooseX::BatmanBeforeRobin 2010-09-08 14:47:45 +02:00
README 0.03 Sun Sep 12 13:54:56 CEST 2010 2010-09-12 13:54:57 +02:00

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"