stop using excludes within moose, since it's no longer necessary
[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
8b9641b8 6use Moose::Role;
7
00bbc132 8with 'Moose::Meta::Method::Accessor::Native::Reader';
8b9641b8 9
10sub _maximum_arguments { 0 }
f7fd22b6 11
12sub _return_value {
53a4677c 13 my $self = shift;
14 my ($slot_access) = @_;
f7fd22b6 15
53a4677c 16 return '@{ (' . $slot_access . ') } ? 0 : 1';
f7fd22b6 17}
18
8b9641b8 19no Moose::Role;
20
f7fd22b6 211;