GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MOOSEX::HAS::SUGAR::MINIMAL (3)

.ds Aq ’

NAME

MooseX::Has::Sugar::Minimal - Less Sugary Syntax for moose ’has’ fields

CONTENTS

VERSION

version 1.000004

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

CW:default

Exports :is

CW:is

Exports bare, ro, rw

EXPORTED FUNCTIONS

CWbare

returns (bare)

CWro

returns (ro)

CWrw

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) 2014 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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MOOSEX::HAS::SUGAR::MINIMAL (3) 2014-08-16

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.