- EXPORT GROUPS
- EXPORTED FUNCTIONS
- COPYRIGHT AND LICENSE
MooseX::Has::Sugar::Minimal - Less Sugary Syntax for moose 'has' fields
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.
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 );
Kent Fredric <firstname.lastname@example.org>
This software is copyright (c) 2017 by Kent Fredric <email@example.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.