| 1 | package HTML::ValidationRules; | ||||||||||||||||||||
| 2 | 3 | ▶ | use 5.008001; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 3 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 3 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 3 | our $VERSION = '0.02'; | |||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 3 | ▶ | use HTML::ValidationRules::Parser; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 52 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 11 | 52 | my ($class, %args) = @_; | |||||||||||||||||||
| 12 | 52 | bless \%args, $class; | |||||||||||||||||||
| 13 | } | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 52 | ▶ | sub parser { | ||||||||||||||||||
|
Subroutine
parser: called CC=2 SCAR=8.1
Pod
undocumented
| |||||||||||||||||||||
| 16 | 52 | my ($self) = @_; | |||||||||||||||||||
| 17 | 52 | ▶ | $self->{parser} ||= HTML::ValidationRules::Parser->new(%$self); | ||||||||||||||||||
|
Condition33%1/3
$self->{"parser"} ||= "HTML::ValidationRules::Parser"->new(%$self)
MC/DC0%0/2
$self->{"parser"} ||= "HTML::ValidationRules::Parser"->new(%$self)
$self->{"parser"}
"HTML::ValidationRules::Parser"->new(%$self)
Truth table33%1/3
A ||= B
A= $self->{"parser"}B= "HTML::ValidationRules::Parser"->new(%$self)
| |||||||||||||||||||||
| 18 | } | ||||||||||||||||||||
| 19 | |||||||||||||||||||||
| 20 | 52 | ▶ | sub load_rules { | ||||||||||||||||||
|
Subroutine
load_rules: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 21 | 52 | my ($self, %args) = @_; | |||||||||||||||||||
| 22 | 52 | $self->parser->load_rules(%args); | |||||||||||||||||||
| 23 | } | ||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | 3 | !!1; | |||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | __END__ | ||||||||||||||||||||