X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse.pm;h=ef101e1ab5028f4a5025c31fb7a395c189a630df;hb=5893ee369af9cdefdea2bafa641d4b4470fd91c1;hp=ea37765f23422c63e28b32e46e5d47161eff1622;hpb=6614c108c8352daf75d6991ec550d1f520bc76f1;p=gitmo%2FMouse.git diff --git a/lib/Mouse.pm b/lib/Mouse.pm index ea37765..ef101e1 100644 --- a/lib/Mouse.pm +++ b/lib/Mouse.pm @@ -4,7 +4,7 @@ use warnings; use 5.006; use base 'Exporter'; -our $VERSION = '0.20'; +our $VERSION = '0.21'; use Carp 'confess'; use Scalar::Util 'blessed'; @@ -305,10 +305,16 @@ the attribute. =item isa => TypeConstraint -Provides basic type checking in the constructor and accessor. Basic types such -as C, C, C are supported. Any unknown type is taken to -be a class check (e.g. isa => 'DateTime' would accept only L -objects). +Provides type checking in the constructor and accessor. The following types are +supported. Any unknown type is taken to be a class check (e.g. isa => +'DateTime' would accept only L objects). + + Any Item Bool Undef Defined Value Num Int Str ClassName + Ref ScalarRef ArrayRef HashRef CodeRef RegexpRef GlobRef + FileHandle Object + +For more documentation on type constraints, see L. + =item required => 0|1 @@ -418,6 +424,15 @@ Returns whether this class is actually loaded or not. It uses a heuristic which involves checking for the existence of C<$VERSION>, C<@ISA>, and any locally-defined method. +=head1 SOURCE CODE ACCESS + +We have a public git repo: + + git clone git://jules.scsys.co.uk/gitmo/Mouse.git + +If you would like commit access, send a note with your public SSH key to Yuval +Kogman, at the address below. + =head1 AUTHORS Shawn M Moore, C<< >>