Commit | Line | Data |
444a29de |
1 | package Moose::Meta::Method::Accessor::Native::Hash::shallow_clone; |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | use Params::Util (); |
7 | |
8 | use Moose::Role; |
9 | |
10 | with 'Moose::Meta::Method::Accessor::Native::Reader' => { |
11 | -excludes => [ |
12 | qw( |
13 | _minimum_arguments |
14 | _maximum_arguments |
15 | ) |
16 | ] |
17 | }; |
18 | |
19 | sub _minimum_arguments { 0 } |
20 | |
21 | sub _maximum_arguments { 0 } |
22 | |
23 | sub _return_value { |
24 | my $self = shift; |
25 | my ($slot_access) = @_; |
26 | |
27 | return '{ %{ (' . $slot_access . ') } }'; |
28 | } |
29 | |
30 | no Moose::Role; |
31 | |
32 | 1; |