Changes for version 0.72_01

  • Everything
    • Almost every module has complete API documentation. A few methods (and even whole classes) have been intentionally excluded pending some rethinking of their APIs.
  • Moose::Util::TypeConstraints
    • Calling subtype with a name as the only argument is now an exception. If you want an anonymous subtype do:
      • my $subtype = subtype as 'Foo';
  • Moose::Cookbook::Meta::Recipe7
    • A new recipe, creating a custom meta-instance class.
  • Moose::Cookbook::Basics::Recipe5
    • Fix various typos and mistakes. Includes a patch from Radu Greab.
  • Moose::Cookbook::Basics::Recipe9
    • Link to this recipe from Moose.pm's builder blurb
  • Moose::Exporter
    • When wrapping a function with a prototype, Moose::Exporter now makes sure the wrapped function still has the same prototype. (Daisuke Maki)
  • Moose::Meta::Attribute
    • Allow a subclass to set lazy_build for an inherited attribute. (Dieter Pearcey)
  • Makefile.PL
    • Explicitly depend on Data::OptList. We already had this dependency via Sub::Exporter, but since we're using it directly we're better off with it listed. (Sartak)
  • Moose::Meta::Method::Constructor
    • Make it easier to subclass the inlining behaviour. (Ash Berlin)
  • Moose::Manual::Delta
    • Details significant changes in the history of Moose, along with recommended workarounds.
  • Moose::Manual::Contributing
    • Contributor's guide to Moose.
  • Moose::Meta::Method::Constructor
    • The long-deprecated intialize_body method has been removed (yes, spelled like that).
  • Moose::Meta::Method::Destructor
    • This is_needed method is now always a class method.
  • Moose::Meta::Class
    • Changes to the internals of how make_immutable works to match changes in latest Class::MOP.

Documentation

How to cook a Moose
The (always classic) Point example.
Operator overloading, subtypes, and coercion
Using BUILDARGS and BUILD to hook into object construction
A simple BankAccount example
A lazy BinaryTree example
Subtypes, and modeling a simple Company class hierarchy
More subtypes, coercion in a Request class
The augment/inner example
Making Moose fast with immutable
Builder methods and lazy_build
Moose extension overview
Providing a role for the base object class
Providing an alternate base object class
Acting like Moose.pm and providing sugar Moose-style
Frequently asked questions about Moose
Welcome to the meta world (Why Go Meta?)
A meta-attribute, attributes with labels
Labels implemented via attribute traits
Adding a "table" attribute to the metaclass
The "table" attribute as a metaclass trait
Creating a glob reference meta-instance class
The Moose::Role example
Advanced Role Composition - method exclusion and aliasing
Applying a role to an object instance
Restricted "keywords" in Moose
Snippets of code for using Types and Type Constraints
Expanded into Moose::Manual::BestPractices, so go read that
For when things go wrong with Moose
Expanded into Moose::Manual, so go read that
What is Moose, and how do I use it?
Object attributes with Moose
Get the most out of Moose
Making your classes use Moose (and subclassing)
Moose OO concepts
Object construction (and destruction) with Moose
How to get involved in Moose
Attribute delegation
Important Changes in Moose
The Moose (and Class::MOP) meta API
Moose's method modifiers
Recommended Moose extensions
Roles, an alternative to deep hierarchies and base classes
Moose's type system
Formal spec for Role behavior
Moose idioms in plain old Perl 5 without the sugar

Modules

A postmodern object system for Perl 5
Prefer confess
Prefer croak
Carp based error generation for Moose.
make an import() and unimport() just like Moose.pm
The Moose attribute metaclass
The Moose metaclass
The Moose Instance metaclass
A Moose Method metaclass
A Moose Method metaclass for accessors
A Moose Method metaclass for augmented methods
Method Meta Object for constructors
A Moose Method metaclass for delegation methods
Method Meta Object for destructors
A Moose Method metaclass for overridden methods
The Moose Role metaclass
A base class for role application
Compose a role into a class
Compose a role into an instance
Compose a role into another role
An object to represent the set of roles
A Moose Method metaclass for Roles
A Moose metaclass for required methods in Roles
The Moose Type Coercion metaclass
The Moose Type Coercion metaclass for Unions
The Moose Type Constraint metaclass
Class/TypeConstraint parallel hierarchy
Type constraint for enumerated values.
Type constraints which can take a parameter (ArrayRef)
Type constraints with a bound parameter (ArrayRef[Int])
registry for type constraints
Role/TypeConstraint parallel hierarchy
A union of Moose type constraints
The base object for Moose
The Moose Role
Utilities for working with Moose classes
Apply roles to any metaclass, as well as the object base class
Type constraint system for Moose
Optimized constraint bodies for various moose types
Test functions for Moose specific features
syntactic sugar to make Moose one-liners easier

Provides

in lib/Moose/Meta/Attribute.pm