« blib/lib/WWW/Shopify/Liquid/Dialect/Shopify/Tag/Layout.pm
↑ Summary
blib/lib/WWW/Shopify/Liquid/Filter/Downcase.pm »
| 1 | #!/usr/bin/perl | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | package WWW::Shopify::Liquid::Filter::Default; | ||
| 6 | use base 'WWW::Shopify::Liquid::Filter'; | ||
| 7 | sub operate { | ||
| 8 | my ($self, $hash, $operand, $argument) = @_; | ||
| 9 | return defined $operand ? $operand : $argument; | ||
| 10 | } | ||
| 11 | |||
| 12 | 1; |