From: Stevan Little Date: Fri, 30 Nov 2007 04:56:52 +0000 (+0000) Subject: docfix X-Git-Tag: 0_49~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4c4a6c411154d661d8f138db70bfd0b92078aaf2;p=gitmo%2FClass-MOP.git docfix --- diff --git a/Changes b/Changes index 1e8d499..48b07b6 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Perl extension Class-MOP. +0.49 + ~ some doc cleanup ~ + 0.48 Mon. Nov. 26, 2007 * Class::MOP::Attribute - fixed get_read/write_method to handle the diff --git a/README b/README index 208c8a3..d796e1b 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -Class::MOP version 0.48 +Class::MOP version 0.49 =========================== See the individual module documentation for more information diff --git a/lib/Class/MOP.pm b/lib/Class/MOP.pm index 7b037be..56f55fe 100644 --- a/lib/Class/MOP.pm +++ b/lib/Class/MOP.pm @@ -13,7 +13,7 @@ use Class::MOP::Method; use Class::MOP::Immutable; -our $VERSION = '0.48'; +our $VERSION = '0.49'; our $AUTHORITY = 'cpan:STEVAN'; { diff --git a/lib/Class/MOP/Attribute.pm b/lib/Class/MOP/Attribute.pm index 1b721d7..bcd1097 100644 --- a/lib/Class/MOP/Attribute.pm +++ b/lib/Class/MOP/Attribute.pm @@ -398,12 +398,6 @@ value of C<-foo>, then the following code will Just Work. In an init_arg is not assigned, it will automatically use the value of C<$name>. -=item I - -The value of this key is the default value which -C will initialize the -attribute to. - =item I The value of this key is the name of the method that will be @@ -411,6 +405,12 @@ called to obtain the value used to initialize the attribute. This should be a method in the class associated with the attribute, not a method in the attribute class itself. +=item I + +The value of this key is the default value which +C will initialize the +attribute to. + B If the value is a simple scalar (string or number), then it can be just passed as is. However, if you wish to initialize it with