1 package Moose::Meta::Method::Accessor::Native::String::chop;
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
12 with 'Moose::Meta::Method::Accessor::Native::Writer' => {
16 _inline_optimized_set_new_value
22 sub _maximum_arguments { 0 }
24 sub _potential_value {
25 my ( $self, $slot_access ) = @_;
27 return "( do { my \$val = $slot_access; \@return = chop \$val; \$val } )";
30 sub _inline_optimized_set_new_value {
31 my ( $self, $inv, $new, $slot_access ) = @_;
33 return "\@return = chop $slot_access";
37 my ( $self, $slot_access ) = @_;