|
NAMEMooseX::HasDefaults - default "is" to "ro" or "rw" for all attributesSYNOPSISpackage Person; use Moose; use MooseX::HasDefaults::RO; has name => ( isa => 'Str', ); has age => ( is => 'rw', isa => 'Int', documentation => "Changes most years", ); DESCRIPTIONThe module MooseX::HasDefaults::RO defaults "is" to "ro".The module MooseX::HasDefaults::RW defaults "is" to "rw". If you pass a specific value to any "has"'s "is", that overrides the default. If you do not want an accessor, pass "is => undef". AUTHORShawn M Moore, "sartak@gmail.com"SEE ALSO
COPYRIGHT AND LICENSECopyright 2009 Infinity InteractiveThis program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |