From: Dave Rolsky Date: Tue, 9 Feb 2010 23:09:34 +0000 (-0600) Subject: Add docs on class attribute in roles, and other doc tweaks X-Git-Tag: 0.11~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0388e669286b6625e3bb5c1afdeaec3b01335a91;p=gitmo%2FMooseX-ClassAttribute.git Add docs on class attribute in roles, and other doc tweaks --- diff --git a/lib/MooseX/ClassAttribute.pm b/lib/MooseX/ClassAttribute.pm index 2fc924f..5de8257 100644 --- a/lib/MooseX/ClassAttribute.pm +++ b/lib/MooseX/ClassAttribute.pm @@ -86,13 +86,13 @@ This module allows you to declare class attributes in exactly the same way as object attributes, using C instead of C. You can use any feature of Moose's attribute declarations, including -overriding a parent's attributes, delegation (C), and -attribute metaclasses, and it should just work. The one exception is -the "required" flag, which is not allowed for class attributes. +overriding a parent's attributes, delegation (C), attribute traits, +etc. All features should just work. The one exception is the "required" flag, +which is not allowed for class attributes. The accessor methods for class attribute may be called on the class directly, or on objects of that class. Passing a class attribute to -the constructor will not set it. +the constructor will not set that attribute. =head1 FUNCTIONS @@ -120,7 +120,14 @@ attributes. This module should work with most attribute metaclasses and traits, but it's possible that conflicts could occur. This module has been -tested to work with C. +tested to work with Moose's native traits. + +=head2 Class Attributes in Roles + +You can add a class attribute to a role. When that role is applied to a class, +the class will have the relevant class attributes added. Note that attribute +defaults will be calculated when the class attribute is composed into the +class. =head1 DONATIONS