The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.65

  • Moose and Moose::Meta::Method::Overridden
    • If an overridden method called super(), and then the superclass's method (not overridden) _also_ called super(), Moose went into an endless recursion loop. Test provided by Chris Prather. (Dave Rolsky)
  • Moose::Meta::TypeConstraint
    • All methods are now documented. (gphat)
  • t/100_bugs/011_DEMOLISH_eats_exceptions.t
    • Fixed some bogus failures that occurred because we tried to validate filesystem paths in a very ad-hoc and not-quite-correct way. (Dave Rolsky)
  • Moose::Util::TypeConstraints
    • Added maybe_type to exports. See docs for details. (rjbs)
  • Moose
    • Added Moose::Util::TypeConstraints to the SEE ALSO section. (pjf)
  • Moose::Role
    • Methods created via an attribute can now fulfill a "requires" declaration for a role. (nothingmuch)
  • Moose::Meta::Method::*
    • Stack traces from inlined code will now report its line and file as being in your class, as opposed to in Moose guts. (nothingmuch).

Documentation

How to cook a Moose
The (always classic) Point example.
Operator overloading, subtypes, and coercion
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
The Moose::Role example
Advanced Role Composition - method exclusion and aliasing
Restricted keywords in Moose
Snippets of code for using Types and Type Constraints
The latest in trendy Moose cuisine
For when things go wrong with Moose
What is Moose, and how do I use it?
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 overriden 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.
Higher Order type constraints for Moose
Higher Order type constraints for Moose
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