X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FRole%2FParameterized%2FTutorial.pm;h=ab7c9215205f8d1e82e6d08e7704e7a77a199532;hb=c190fb29393d3ba7a7e37d138e5bd84197744a13;hp=af1890275a9a15dfe8086e1619d224f601954138;hpb=61958fc8d1d13a6a4293607ec8fb730aa134225b;p=gitmo%2FMooseX-Role-Parameterized.git diff --git a/lib/MooseX/Role/Parameterized/Tutorial.pm b/lib/MooseX/Role/Parameterized/Tutorial.pm index af18902..ab7c921 100644 --- a/lib/MooseX/Role/Parameterized/Tutorial.pm +++ b/lib/MooseX/Role/Parameterized/Tutorial.pm @@ -60,9 +60,9 @@ then passed to... =head3 C C takes a block of code that will be used to generate your role with its -parameters bound. Here is where you put your regular role code: use C, -method modifiers, and so on. You receive as an argument the parameter object -constructed by C. You can access the parameters just like regular +parameters bound. Here is where you declare parameterized components: use +C, method modifiers, and so on. You receive as an argument the parameter +object constructed by C. You can access the parameters just like regular attributes on that object (assuming you declared them readable). Each time you compose this parameterized role, the role {} block will be