Sha256: 150a373d95bd7484751e3c22e5c28d473d3137a582a3db99c803604bfc883279
Contents?: true
Size: 718 Bytes
Versions: 14
Compression:
Stored size: 718 Bytes
Contents
package Moose::Meta::Method::Accessor::Native::String::chop; our $VERSION = '2.2206'; 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 . '; ' . '@return = chop $val; ' . '$val; ' . '})'; } sub _inline_optimized_set_new_value { my $self = shift; my ($inv, $new, $slot_access) = @_; return '@return = chop ' . $slot_access . ';'; } sub _return_value { my $self = shift; my ($slot_access) = @_; return '$return[0]'; } no Moose::Role; 1;
Version data entries
14 entries across 7 versions & 1 rubygems