1 package Moose::Meta::Method::Accessor::Native::String::chomp;
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 {
26 my ($slot_access) = @_;
29 . 'my $val = ' . $slot_access . '; '
30 . '@return = chomp $val; '
35 sub _inline_optimized_set_new_value {
37 my ($inv, $new, $slot_access) = @_;
39 return '@return = chomp ' . $slot_access . ';';
44 my ($slot_access) = @_;