NAME

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

VERSION

version 0.0404

SYNOPSIS

This is a legacy variant of MooseX::Has::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,
);

EXPORT

rw
ro
bare

EXPORT GROUPS

:default

Exports :is

:is

Exports ro and rw and bare

CONFLICTS

This module is not intended to be used in conjunction with MooseX::Has::Sugar.

We both export ro and rw in different ways.

If you do however want to use them in conjuction, 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 );

FUNCTIONS

These you probably don't care about, they're all managed by Sub::Exporter and its stuff anyway.

rw

returns ('rw')

ro

returns ('ro')

bare

returns ('bare')

BUGS

Please report any bugs or feature requests to bug-moosex-has-extras at rt.cpan.org or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-Has-Sugar.

I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc MooseX::Has::Sugar::Minimal

You can also look for information at:

ACKNOWLEDGEMENTS

AUTHOR

Kent Fredric <kentnl at cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2009 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.