EPUB-Parser
view release on metacpan or search on metacpan
lib/EPUB/Parser/File/OPF/Context.pm view on Meta::CPAN
12345678910111213141516171819202122232425262728293031323334package
EPUB::Parser::File::OPF::Context;
use
strict;
use
warnings;
use
Smart::Args;
sub
new {
args(
my
$class
=>
'ClassName'
,
my
$opf
=> {
isa
=>
'EPUB::Parser::File::OPF'
},
my
$context_name
=>
'Str'
,
my
$parser
,
);
my
$child_class
=
$class
->child_class({
context_name
=>
$context_name
,
});
my
$child
=
bless
{
opf
=>
$opf
,
parser
=>
$parser
,
context_name
=>
$context_name
,
} =>
$child_class
;
weaken
$child
->{opf};
return
$child
;
}
sub
opf {
shift
->{opf} }
1;
( run in 0.312 second using v1.01-cache-2.11-cpan-fd5d4e115d8 )