1 package Moose::Meta::Method::Accessor::Native::Array::sort_in_place;
10 with 'Moose::Meta::Method::Accessor::Native::Array::Writer';
12 sub _maximum_arguments { 1 }
14 sub _inline_check_arguments {
18 'if (@_ && !Params::Util::_CODELIKE($_[0])) {',
19 $self->_inline_throw_error(
20 '"The argument passed to sort_in_place must be a code '
27 sub _adds_members { 0 }
29 sub _potential_value {
31 my ($slot_access) = @_;
34 . '? sort { $_[0]->($a, $b) } @{ (' . $slot_access . ') } '
35 . ': sort @{ (' . $slot_access . ') } ]';
38 sub _return_value { '' }