Commit | Line | Data |
---|---|---|
910684ee | 1 | package Moose::Meta::Method::Accessor::Native::Array::uniq; |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
6 | use List::MoreUtils (); | |
7 | ||
245478d5 | 8 | our $VERSION = '1.19'; |
910684ee | 9 | $VERSION = eval $VERSION; |
10 | our $AUTHORITY = 'cpan:STEVAN'; | |
11 | ||
8b9641b8 | 12 | use Moose::Role; |
13 | ||
14 | with 'Moose::Meta::Method::Accessor::Native::Reader' => | |
15 | { -excludes => ['_maximum_arguments'] }; | |
910684ee | 16 | |
a7821be5 | 17 | sub _maximum_arguments { 0 } |
18 | ||
910684ee | 19 | sub _return_value { |
53a4677c | 20 | my $self = shift; |
21 | my ($slot_access) = @_; | |
910684ee | 22 | |
53a4677c | 23 | return 'List::MoreUtils::uniq @{ (' . $slot_access . ') }'; |
910684ee | 24 | } |
25 | ||
8b9641b8 | 26 | no Moose::Role; |
27 | ||
910684ee | 28 | 1; |