From: Stevan Little Date: Tue, 21 Mar 2006 19:24:01 +0000 (+0000) Subject: updating X-Git-Tag: 0_05~68 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=076c81ed81b1bbc9cb43f6bf21889fac7e9f2830;p=gitmo%2FMoose.git updating --- diff --git a/Changes b/Changes index 10976df..cdd93d8 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,6 @@ Revision history for Perl extension Moose -0.02 +0.02 Tues. March 21, 2006 * Moose - many more tests, fixing some bugs and edge cases diff --git a/MANIFEST b/MANIFEST index 4b051e5..ef0e426 100644 --- a/MANIFEST +++ b/MANIFEST @@ -9,15 +9,22 @@ lib/Moose.pm lib/Moose/Object.pm lib/Moose/Meta/Attribute.pm lib/Moose/Meta/Class.pm +lib/Moose/Meta/TypeCoercion.pm +lib/Moose/Meta/TypeConstraint.pm lib/Moose/Util/TypeConstraints.pm t/000_load.t t/001_basic.t t/002_basic.t t/003_basic.t +t/004_basic.t +t/005_basic.t +t/006_basic.t t/010_basic_class_setup.t t/020_foreign_inheritence.t t/050_util_type_constraints.t t/051_util_type_constraints_export.t t/052_util_std_type_constraints.t +t/053_util_find_type_constraint.t +t/054_util_type_coercion.t t/pod.t t/pod_coverage.t diff --git a/README b/README index d4656db..46cd84c 100644 --- a/README +++ b/README @@ -20,6 +20,7 @@ This module requires these other modules and libraries: Scalar::Util Carp Sub::Name + UNIVERSAL::require COPYRIGHT AND LICENCE diff --git a/lib/Moose.pm b/lib/Moose.pm index 7f9d9a1..00b0aaa 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -250,7 +250,7 @@ few convience ones provided by Moose which are listed below: =over 4 -=item I 'rw'|'ro'> +=item I 'rw'|'ro'> The I option accepts either I (for read/write) or I (for read only). These will create either a read/write accessor or a read-only @@ -259,7 +259,7 @@ accessor respectively, using the same name as the C<$name> of the attribute. If you need more control over how your accessors are named, you can use the I, I and I options inherited from L. -=item I $type_name> +=item I $type_name> The I option uses Moose's type constraint facilities to set up runtime type checking for this attribute. Moose will perform the checks during class @@ -269,11 +269,11 @@ Moose's type defintion features. =back -=item B sub { ... }> +=item B sub { ... }> -=item B sub { ... }> +=item B sub { ... }> -=item B sub { ... }> +=item B sub { ... }> This three items are syntactic sugar for the before, after and around method modifier features that L provides. More information on these can @@ -300,13 +300,13 @@ C anywhere you need to test for an object's class name. =item I blame Audrey Tang for encouraging that meta-crack habit in #perl6. -=item Without the love and encouragement of Yuval "nothingmuch" Kogman, -this module would not be possible (and it wouldn't have a name). +=item Without Yuval "nothingmuch" Kogman this module would not be possible, +and it would certainly have a name ;P =item The basis of the TypeContraints module was Rob Kinyon's idea originally, I just ran with it. -=item Much love to mst & chansen and the whole #moose poose for all the +=item Thanks to mst & chansen and the whole #moose poose for all the ideas/feature-requests/encouragement =back