From: Shawn M Moore Date: Sun, 10 May 2009 16:05:17 +0000 (-0400) Subject: various doc improvements X-Git-Tag: 0.06~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Role-Parameterized.git;a=commitdiff_plain;h=aeaaabaf192414bedf70c9144df18cd70b9f6a0a various doc improvements --- diff --git a/lib/MooseX/Role/Parameterized.pm b/lib/MooseX/Role/Parameterized.pm index 0b5c961..2ec5f18 100644 --- a/lib/MooseX/Role/Parameterized.pm +++ b/lib/MooseX/Role/Parameterized.pm @@ -217,25 +217,24 @@ L. =head1 DESCRIPTION -Your parameterized role consists of two things: parameter declarations and a -C block. +Your parameterized role consists of two new things: parameter declarations +and a C block. Parameters are declared using the L keyword which very much resembles L. You can use any option that L accepts. The -default value for the "is" option is "ro" as that's a very common case. These +default value for the C option is C as that's a very common case. These parameters will get their values when the consuming class (or role) uses L. A parameter object will be constructed with these values, and passed to the C block. The C block then uses the usual L keywords to build up a role. You can shift off the parameter object to inspect what the consuming -class provided as parameters. You can use the parameters to make your role -customizable! +class provided as parameters. You use the parameters to customize your +role however you wish. -There are many paths to parameterized roles (hopefully with a consistent enough -API); I believe this to be the easiest and most flexible implementation. -Coincidentally, Pugs has a very similar design (I'm not yet convinced that that -is a good thing). +There are many possible implementations for parameterized roles (hopefully with +a consistent enough API); I believe this to be the easiest and most flexible +design. Coincidentally, Pugs has an eerily similar design. =head1 CAVEATS @@ -245,7 +244,7 @@ return though you can use parameters I! L and L are not yet supported. I'm completely unsure of whether they should be handled by this module. Until we -figure out a plan, both declaring and providing a parameter named C or +figure out a plan, either declaring or providing a parameter named C or C is an error. =head1 AUTHOR