Commit | Line | Data |
44babf1f |
1 | package Moose::Meta::Method::Accessor::Native::Hash::count; |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | use Scalar::Util qw( looks_like_number ); |
7 | |
8 | our $VERSION = '1.13'; |
9 | $VERSION = eval $VERSION; |
10 | our $AUTHORITY = 'cpan:STEVAN'; |
11 | |
12 | use base 'Moose::Meta::Method::Accessor::Native::Reader'; |
13 | |
14 | sub _minimum_arguments { 0 } |
15 | |
16 | sub _maximum_arguments { 0 } |
17 | |
18 | sub _return_value { |
19 | my $self = shift; |
20 | my $slot_access = shift; |
21 | |
22 | return "scalar keys \%{ $slot_access }"; |
23 | } |
24 | |
25 | |
26 | 1; |