X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FRole%2FParameterized.pm;h=1d2af1d0ceac5a83524eead6bcd7097082827ac1;hb=fa2e6c00d63c8797ee17240719ee6b713ad83a82;hp=83e88edd5bf6b2f931fe57de0f83939dc7872882;hpb=207b70954b92093725c173a8acce30f485505f33;p=gitmo%2FMooseX-Role-Parameterized.git diff --git a/lib/MooseX/Role/Parameterized.pm b/lib/MooseX/Role/Parameterized.pm index 83e88ed..1d2af1d 100644 --- a/lib/MooseX/Role/Parameterized.pm +++ b/lib/MooseX/Role/Parameterized.pm @@ -191,7 +191,6 @@ MooseX::Role::Parameterized - parameterized roles use MooseX::Role::Parameterized; parameter name => ( - is => 'ro', isa => 'Str', required => 1, ); @@ -234,8 +233,9 @@ Your parameterized role consists of two 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. -These parameters will get their values when the consuming class (or role) uses +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 +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.