| 1 | #!/usr/bin/perl | ||||||||||
| 2 | 30 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 30 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package WWW::Shopify::Liquid::Tag::Enclosing; | ||||||||||
| 6 | 30 | ▶ | use base 'WWW::Shopify::Liquid::Tag'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 0 | ▶ | sub abstract { my $package = ref($_[0]) ? ref($_[0]) : $_[0]; return ($package eq __PACKAGE__); } | ||||||||
|
Subroutine
abstract: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||
| 8 | 0 | ▶ | sub is_enclosing { return 1; } | ||||||||
|
Subroutine
is_enclosing: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 9 | 0 | ▶ | sub inner_tags { return (); } | ||||||||
|
Subroutine
inner_tags: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 10 | 0 | ▶ | sub inner_ignore_whitespace { return 0; } | ||||||||
|
Subroutine
inner_ignore_whitespace: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 11 | # Interprets the inner of this tag as being completely text. Used for comments and raws. | ||||||||||
| 12 | 0 | ▶ | sub inner_halt_lexing { return 0; } | ||||||||
|
Subroutine
inner_halt_lexing: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 13 | |||||||||||
| 14 | sub new { | ||||||||||
| 15 | 0 | ▶ | my ($package, $line, $tag, $arguments, $contents) = @_; | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 16 | 0 | my $self = { line => $line, core => $tag, arguments => $arguments, contents => @{$contents->[0]} }; | |||||||||
| 17 | 0 | ▶ | die new WWW::Shopify::Liquid::Exception::Parser($self, "Uncustomized tags can only have one element following their contents.") unless int(@$contents) == 1; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 0 | return bless $self, $package; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 0 | ▶ | sub strip_left_end { $_[0]->{strip_left_end} = $_[1] if @_ > 1; return $_[0]->{strip_left_end}; } | ||||||||
|
Subroutine
strip_left_end: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||
| 22 | 0 | ▶ | sub strip_right_end { $_[0]->{strip_right_end} = $_[1] if @_ > 1; return $_[0]->{strip_right_end}; } | ||||||||
|
Subroutine
strip_right_end: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||
| 23 | |||||||||||
| 24 | 30 | 1; | |||||||||