Commit | Line | Data |
---|---|---|
f7fd22b6 | 1 | package Moose::Meta::Method::Accessor::Native::Array::is_empty; |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
8b9641b8 | 6 | use Moose::Role; |
7 | ||
8 | with 'Moose::Meta::Method::Accessor::Native::Reader' => | |
9 | { -excludes => ['_maximum_arguments'] }; | |
10 | ||
11 | sub _maximum_arguments { 0 } | |
f7fd22b6 | 12 | |
13 | sub _return_value { | |
53a4677c | 14 | my $self = shift; |
15 | my ($slot_access) = @_; | |
f7fd22b6 | 16 | |
53a4677c | 17 | return '@{ (' . $slot_access . ') } ? 0 : 1'; |
f7fd22b6 | 18 | } |
19 | ||
8b9641b8 | 20 | no Moose::Role; |
21 | ||
f7fd22b6 | 22 | 1; |