lib/WWW/Shopify/Liquid/Filter/Rstrip.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
transparent
2.0
operate
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4  
5 package WWW::Shopify::Liquid::Filter::Rstrip; use base 'WWW::Shopify::Liquid::Filter';
6 sub transparent { return 1; }
7 sub operate {
8 my ($self, $hash, $operand) = @_;
9 $operand =~ s/\s*$//;
10 return $operand;
11 }
12  
13 1;