MooseX::Types::TypeDecorator - Wraps Moose::Meta::TypeConstraint objects with added features

  1. VERSION
  2. DESCRIPTION
  3. METHODS
    1. new
    2. __type_constraint ($type_constraint)
    3. isa
    4. can
    5. _throw_error
    6. DESTROY
    7. AUTOLOAD
  4. SUPPORT
  5. AUTHOR
  6. COPYRIGHT AND LICENCE

VERSION

version 0.50

DESCRIPTION

This is a decorator object that contains an underlying type constraint. We use this to control access to the type constraint and to add some features.

METHODS

This class defines the following methods.

new

Old school instantiation

__type_constraint ($type_constraint)

Set/Get the type_constraint.

isa

handle $self->isa since AUTOLOAD can't - this tries both the type constraint, and for a class type, the class.

can

handle $self->can since AUTOLOAD can't.

_throw_error

properly delegate error messages

DESTROY

We might need it later

AUTOLOAD

Delegate to the decorator target, unless this is a class type, in which case it will try to delegate to the type object, then if that fails try the class. The method 'new' is special cased to only be permitted on the class; if there is no class, or it does not provide a new method, an exception will be thrown.

SUPPORT

Bugs may be submitted through the RT bug tracker (or [email protected]).

There is also a mailing list available for users of this distribution, at http://lists.perl.org/list/moose.html.

There is also an irc channel available for users of this distribution, at #moose on irc.perl.org.

AUTHOR

Robert "phaylon" Sedlacek <[email protected]>

This software is copyright (c) 2007 by Robert "phaylon" Sedlacek.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.