« blib/lib/WWW/Shopify/Liquid/Filter/Sprintf.pm
↑ Summary
blib/lib/WWW/Shopify/Liquid/Filter/DividedBy.pm »
| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | 30 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 30 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | # Used in our AST to keep things simple; represents the concatenation of text and other stuff. | ||
| 7 | # Making this a many-dimensional operator, so that we avoid going too far down the callstack rabbithole. | ||
| 8 | package WWW::Shopify::Liquid::Operator::Not; | ||
| 9 | 30 | ▶ | use base 'WWW::Shopify::Liquid::Operator'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 30 | ▶ | use Scalar::Util qw(blessed); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 0 | ▶ | sub symbol { return "!"; } |
|
Subroutine
symbol: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 12 | 0 | ▶ | sub arity { return "unary"; } |
|
Subroutine
arity: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 13 | 0 | ▶ | sub fixness { return "prefix"; } |
|
Subroutine
fixness: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 14 | sub operate { | ||
| 15 | 0 | ▶ | my ($self, $hash, $action, $op) = @_; |
|
Subroutine
operate: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 16 | 0 | return !$op; | |
| 17 | } | ||
| 18 | |||
| 19 | 30 | 1; | |