blib/lib/HTML/Object/DOM/Element/Meta.pm untested

filter: Statementstmt 0.0% 0 / 30 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 12 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 52 CC 2 SCAR 9.6
CC
2
Cov
0%
init
6.0
BEGIN
2.0
content
2.0
CRAP 2.6
1 ##----------------------------------------------------------------------------
2 ## HTML Object - ~/lib/HTML/Object/DOM/Element/Meta.pm
3 ## Version v0.2.0
4 ## Copyright(c) 2021 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2021/12/23
7 ## Modified 2022/09/18
8 ## All rights reserved.
9 ##
10 ##
11 ## This program is free software; you can redistribute it and/or modify it
12 ## under the same terms as Perl itself.
13 ##----------------------------------------------------------------------------
14 package HTML::Object::DOM::Element::Meta;
15 BEGIN
16 {
17 use strict;
18 use warnings;
19 warnings::register_categories( 'HTML::Object' );
20 use parent qw( HTML::Object::DOM::Element );
21 use vars qw( $VERSION );
22 our $VERSION = 'v0.2.0';
23 };
24  
25 use strict;
26 use warnings;
27  
28 sub init
29 {
30 my $self = shift( @_ );
31 $self->{_init_strict_use_sub} = 1;
32 $self->SUPER::init( @_ ) || return( $self->pass_error );
33 $self->{tag} = 'meta' if( !CORE::length( "$self->{tag}" ) );
34 return( $self );
35 }
36  
37 sub content : lvalue { return( shift->_set_get_property( 'content', @_ ) ); }
38  
39 sub httpEquiv : lvalue { return( shift->_set_get_property( 'httpequiv', @_ ) ); }
40  
41 sub name : lvalue { return( shift->_set_get_property( 'name', @_ ) ); }
42  
43 sub scheme : lvalue { return( shift->_set_get_property( 'scheme', @_ ) ); }
44  
45 1;
46 # NOTE: POD
47 __END__