NAME

MooX::Types::MooseLike - Moose like types for Moo

SYNOPSIS

package MyPackage;
use Moo;
use MooX::Types::MooseLike qw(:all);

has "beers_by_day_of_week" => (
    isa => HashRef
);
has "current_BAC" => (
    isa => Num
);

SUBROUTINES (Types)

Num

A number type

Int

An integer type

Bool

A boolean 1|0 type

ArrayRef

An ArrayRef type

HashRef

A HashRef type

CodeRef

A CodeRef type

RegexpRef

A regular expression reference type

GlobRef

A glob reference type

AHRef

An ArrayRef[HashRef] type

NoRef

A non-reference type

AUTHOR

Mateu Hunter hunter@missoula.org

THANKS

mst provided the implementation suggestion of using 'can' on a quoted sub to define a type (subroutine).

COPYRIGHT

Copyright 2011, Mateu Hunter

LICENSE

You may distribute this code under the same terms as Perl itself.