Sha256: fff597f947106e9b2d3282fcb5e3c76d9e5becb0ce0b30430baef38c4725986f
Contents?: true
Size: 718 Bytes
Versions: 33
Compression:
Stored size: 718 Bytes
Contents
package Moose::Meta::Method::Accessor::Native::String::chop; our $VERSION = '2.2207'; 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
33 entries across 21 versions & 1 rubygems