007a9f06647deef9fc8ad3166ce323632fb5d528
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / first.pm
1 package Moose::Meta::Method::Accessor::Native::Array::first;
2
3 use strict;
4 use warnings;
5
6 our $VERSION = '1.13';
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
9
10 use base 'Moose::Meta::Method::Accessor::Native::Array::Reader';
11
12 sub _return_value {
13     my $self        = shift;
14     my $slot_access = shift;
15
16     return "${slot_access}->[0]";
17 }
18
19 1;