Sha256: 3e64d182b27b83555aa0f1bbff3926c3f1f46210338c12b727bceb4a158a6cd1
Contents?: true
Size: 587 Bytes
Versions: 18
Compression:
Stored size: 587 Bytes
Contents
package Moose::Meta::Method::Accessor::Native::String::inc; our $VERSION = '2.2203'; use strict; use warnings; use Moose::Role; with 'Moose::Meta::Method::Accessor::Native::Writer'; sub _maximum_arguments { 0 } sub _potential_value { my $self = shift; my ($slot_access) = @_; return '(do { ' . 'my $val = ' . $slot_access . '; ' . '$val++; ' . '$val; ' . '})'; } sub _inline_optimized_set_new_value { my $self = shift; my ($inv, $new, $slot_access) = @_; return $slot_access . '++;'; } no Moose::Role; 1;
Version data entries
18 entries across 9 versions & 1 rubygems