Use dzil Authority plugin - remove $AUTHORITY from code
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Number / set.pm
CommitLineData
f23ffd15 1package Moose::Meta::Method::Accessor::Native::Number::set;
2
3use strict;
4use warnings;
5
8b9641b8 6use Moose::Role;
7
8with 'Moose::Meta::Method::Accessor::Native::Writer' => {
9 -excludes => [
10 qw(
11 _minimum_arguments
12 _maximum_arguments
a486d5ad 13 _inline_optimized_set_new_value
8b9641b8 14 )
15 ]
7f5ec80d 16 };
f23ffd15 17
1e2c801e 18sub _minimum_arguments { 1 }
19sub _maximum_arguments { 1 }
f23ffd15 20
1e2c801e 21sub _potential_value { '$_[0]' }
f23ffd15 22
a486d5ad 23sub _inline_optimized_set_new_value {
53a4677c 24 my $self = shift;
25 my ($inv, $new, $slot_access) = @_;
f23ffd15 26
a486d5ad 27 return $slot_access . ' = $_[0];';
f23ffd15 28}
29
8b9641b8 30no Moose::Role;
31
f23ffd15 321;