/usr/share/perl5/MooseX/Has/Sugar/Minimal.pm is in libmoosex-has-sugar-perl 1.000006-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | use 5.006; # pragmas
use warnings;
use strict;
package MooseX::Has::Sugar::Minimal;
our $VERSION = '1.000006';
# ABSTRACT: Less Sugary Syntax for moose 'has' fields
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
use Sub::Exporter::Progressive -setup => {
exports => [ 'ro', 'rw', 'bare', ],
groups => {
is => [ 'ro', 'rw', 'bare', ],
default => [ '-all', ],
},
};
sub bare() {
return ('bare');
}
sub ro() {
return ('ro');
}
sub rw() {
return ('rw');
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
MooseX::Has::Sugar::Minimal - Less Sugary Syntax for moose 'has' fields
=head1 VERSION
version 1.000006
=head1 SYNOPSIS
This is a legacy variant of L<Sugar|MooseX::Has::Sugar> which only exports C<ro>
and C<rw> functions, the way L<MooseX::Has::Sugar|MooseX::Has::Sugar> used to with C<: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 L<The Sub::Exporter Module|Sub::Exporter>.
=head1 EXPORT GROUPS
=head2 C<:default>
Exports L</:is>
=head2 C<:is>
Exports L</bare>, L</ro>, L</rw>
=head1 EXPORTED FUNCTIONS
=head2 C<bare>
returns C<('bare')>
=head2 C<ro>
returns C<('ro')>
=head2 C<rw>
returns C<('rw')>
=head1 CONFLICTS
=head2 MooseX::Has::Sugar
=head2 MooseX::Has::Sugar::Saccharin
This module is not intended to be used in conjunction with
L<::Sugar|MooseX::Has::Sugar> or L<::Sugar::Saccharin|MooseX::Has::Sugar::Saccharin>.
We all export L</ro> and L</rw> in different ways.
If you do however want to use them in conjunction, specific imports must
be done on L<MooseX::Has::Sugar's|MooseX::Has::Sugar> 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 );
=head1 AUTHOR
Kent Fredric <kentnl@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.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.
=cut
|