bump version to 1.25
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / is_empty.pm
CommitLineData
f7fd22b6 1package Moose::Meta::Method::Accessor::Native::Array::is_empty;
2
3use strict;
4use warnings;
5
0c3879e8 6our $VERSION = '1.25';
f7fd22b6 7$VERSION = eval $VERSION;
8our $AUTHORITY = 'cpan:STEVAN';
9
8b9641b8 10use Moose::Role;
11
12with 'Moose::Meta::Method::Accessor::Native::Reader' =>
13 { -excludes => ['_maximum_arguments'] };
14
15sub _maximum_arguments { 0 }
f7fd22b6 16
17sub _return_value {
18 my $self = shift;
19 my $slot_access = shift;
20
1d06edbf 21 return "\@{ ($slot_access) } ? 0 : 1";
f7fd22b6 22}
23
8b9641b8 24no Moose::Role;
25
f7fd22b6 261;