bump version to 1.19
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / String / inc.pm
CommitLineData
e7724627 1package Moose::Meta::Method::Accessor::Native::String::inc;
2
3use strict;
4use warnings;
5
245478d5 6our $VERSION = '1.19';
e7724627 7$VERSION = eval $VERSION;
8our $AUTHORITY = 'cpan:STEVAN';
9
8b9641b8 10use Moose::Role;
11
12with 'Moose::Meta::Method::Accessor::Native::Writer' => {
13 -excludes => [
14 qw(
15 _maximum_arguments
16 _inline_optimized_set_new_value
17 )
18 ]
7f5ec80d 19 };
e7724627 20
e7724627 21sub _maximum_arguments { 0 }
22
23sub _potential_value {
24 my ( $self, $slot_access ) = @_;
25
e144da7d 26 return "( do { my \$val = $slot_access; \$val++; \$val } )";
e7724627 27}
28
e32b7489 29sub _inline_optimized_set_new_value {
30 my ( $self, $inv, $new, $slot_access ) = @_;
e7724627 31
584540d9 32 return "${slot_access}++";
e7724627 33}
34
8b9641b8 35no Moose::Role;
36
e7724627 371;