| 1 | package EPUB::Parser::File::Navi::Context; | ||
| 2 | 14 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 14 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 14 | ▶ | use Smart::Args; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 14 | ▶ | use EPUB::Parser::Util::Context qw/child_class context_name parser/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 3 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 8 | 3 | args( | |
| 9 | my $class => 'ClassName', | ||
| 10 | my $context_name => 'Str', | ||
| 11 | my $parser, | ||
| 12 | ); | ||
| 13 | |||
| 14 | 3 | my $child_class = $class->child_class({ | |
| 15 | context_name => $context_name, | ||
| 16 | }); | ||
| 17 | |||
| 18 | 3 | my $child = bless { | |
| 19 | parser => $parser, | ||
| 20 | context_name => $context_name, | ||
| 21 | } => $child_class; | ||
| 22 | |||
| 23 | |||
| 24 | 3 | return $child; | |
| 25 | } | ||
| 26 | |||
| 27 | |||
| 28 | 14 | 1; | |