stop using excludes within moose, since it's no longer necessary
[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
00bbc132 8with 'Moose::Meta::Method::Accessor::Native::Writer';
f23ffd15 9
1e2c801e 10sub _minimum_arguments { 1 }
11sub _maximum_arguments { 1 }
f23ffd15 12
1e2c801e 13sub _potential_value { '$_[0]' }
f23ffd15 14
a486d5ad 15sub _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 22no Moose::Role;
23
f23ffd15 241;