Query: moosex::hasdefaults
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MooseX::HasDefaults(3pm) User Contributed Perl Documentation MooseX::HasDefaults(3pm)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 ALSOMooseX::AttributeDefaults This requires its users to be MOP savvy, and is a bit too much typing for the common case of defaulting "is". MooseX::Attributes::Curried This solves a similar need by letting users create sugar functions. But people like "has".COPYRIGHT AND LICENSECopyright 2009 Infinity Interactive This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.4 2010-07-24 MooseX::HasDefaults(3pm)
Related Man Pages |
---|
moosex::types::moose5.18(3pm) - mojave |
moosex::getopt::basic(3pm) - mojave |
moosex::getopt::basic5.18(3pm) - mojave |
moosex::types::moose(3) - osx |
moosex::app::cmd(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Is UNIX an open source OS ? |
Introduction |
Weird 'find' results |
A (ksh) Library For and From UNIX.com |
How to copy a column of multiple files and paste into new excel file (next to column)? |