Changes for version 0.49

  • Moose::Meta::Attribute
    • fixed how the is => (ro|rw) works with custom defined reader, writer and accessor options.
      • added docs for this (TODO).
      • added tests for this (Thanks to Penfold)
    • added the custom attribute alias for regular Moose attributes which is "Moose"
    • fix builder and default both being used (groditi)
  • Moose Moose::Meta::Class Moose::Meta::Attribute Moose::Meta::Role Moose::Meta::Role::Composite Moose::Util::TypeConstraints
    • switched usage of reftype to ref because it is much faster
  • Moose::Meta::Role
    • changing add_package_symbol to use the new HASH ref form
  • Moose::Object
    • fixed how DEMOLISHALL is called so that it can be overrided in subclasses (thanks to Sartak)
      • added test for this (thanks to Sartak)
  • Moose::Util::TypeConstraints
    • move the ClassName type check code to Class::MOP::is_class_loaded (thanks to Sartak)
  • Moose::Cookbook::Recipe11
    • add tests for this (thanks to tokuhirom)

Documentation

How to cook a Moose
Frequently asked questions about Moose
The (always classic) Point example.
The Moose::Role example
Advanced Role Composition - method exclusion and aliasing
A simple BankAccount example
The meta-attribute example
The attribute trait 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
Using the ArrayRef type constraint
Custom initialization methods for Moose objects
Using the HashRef type constraint
Restricted keywords in Moose
Short comparison between Perl 5 objects and Moose objects
Snippets of code for using Types and Type Constraints
For when things go wrong with Moose
Formal spec for Role behavior

Modules

A postmodern object system for Perl 5
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
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
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