Commit | Line | Data |
---|---|---|
f23ffd15 | 1 | package Moose::Meta::Method::Accessor::Native::Number::set; |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
8b9641b8 | 6 | use Moose::Role; |
7 | ||
00bbc132 | 8 | with 'Moose::Meta::Method::Accessor::Native::Writer'; |
f23ffd15 | 9 | |
1e2c801e | 10 | sub _minimum_arguments { 1 } |
11 | sub _maximum_arguments { 1 } | |
f23ffd15 | 12 | |
1e2c801e | 13 | sub _potential_value { '$_[0]' } |
f23ffd15 | 14 | |
a486d5ad | 15 | sub _inline_optimized_set_new_value { |
53a4677c | 16 | my $self = shift; |
17 | my ($inv, $new, $slot_access) = @_; | |
f23ffd15 | 18 | |
a486d5ad | 19 | return $slot_access . ' = $_[0];'; |
f23ffd15 | 20 | } |
21 | ||
8b9641b8 | 22 | no Moose::Role; |
23 | ||
f23ffd15 | 24 | 1; |