Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

moosex::has::sugar::minimal(3pm) [debian man page]

MooseX::Has::Sugar::Minimal(3pm)			User Contributed Perl Documentation			  MooseX::Has::Sugar::Minimal(3pm)

NAME
MooseX::Has::Sugar::Minimal - Less Sugary Syntax for moose 'has' fields VERSION
version 0.05070420 SYNOPSIS
This is a legacy variant of Sugar which only exports "ro" and "rw" functions, the way MooseX::Has::Sugar used to with ":is"; use MooseX::Types::Moose qw( Str ); use MooseX::Has::Sugar::Minimal; has foo => ( isa => Str, is => ro, required => 1, ); has bar => ( isa => Str, is => rw, lazy_build => 1, ); All functions are exported by The Sub::Exporter Module. EXPORT GROUPS
:default Exports ":is" :is Exports "bare", "ro", "rw" EXPORTED FUNCTIONS
bare returns "('bare')" ro returns "('ro')" rw returns "('rw')" CONFLICTS
MooseX::Has::Sugar MooseX::Has::Sugar::Saccharin This module is not intended to be used in conjunction with ::Sugar or ::Sugar::Saccharin. We all export "ro" and "rw" in different ways. If you do however want to use them in conjunction, specific imports must be done on MooseX::Has::Sugar's side to stop it exporting different ro/rw. Any of the below should be fine. use MooseX::Has::Sugar::Minimal; use MooseX::Has::Sugar qw( :attrs ); has foo =>( is => rw , lazy_build ); use MooseX::Has::Sugar::Minimal; use MooseX::Has::Sugar qw( lazy_build ); has foo =>( is => rw , lazy_build ); AUTHOR
Kent Fredric <kentnl at cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Kent Fredric. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-02-12 MooseX::Has::Sugar::Minimal(3pm)

Check Out this Related Man Page

MooseX::HasDefaults(3pm)				User Contributed Perl Documentation				  MooseX::HasDefaults(3pm)

NAME
MooseX::HasDefaults - default "is" to "ro" or "rw" for all attributes SYNOPSIS
package Person; use Moose; use MooseX::HasDefaults::RO; has name => ( isa => 'Str', ); has age => ( is => 'rw', isa => 'Int', documentation => "Changes most years", ); DESCRIPTION
The 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". AUTHOR
Shawn M Moore, "sartak@gmail.com" SEE ALSO
MooseX::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 LICENSE
Copyright 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)
Man Page