File Coverage

blib/lib/Moonshine/Parser.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Moonshine::Parser;
2              
3 1     1   87395 use strict;
  1         2  
  1         30  
4 1     1   4 use warnings;
  1         1  
  1         81  
5              
6 1     1   6 use base qw/Moonshine::Parser::HTML/;
  1         2  
  1         464  
7              
8 1     1   8 use Moonshine::Element;
  1         1  
  1         48  
9              
10             =head1 NAME
11              
12             Moonshine::Parser - Parsed
13              
14             =head1 VERSION
15              
16             Version 0.07
17              
18             =cut
19              
20             our $VERSION = '0.07';
21              
22             =head1 SYNOPSIS
23              
24             use Moonshine::Parser;
25              
26             my $parser = Moonshine::Parser->new();
27             my $moonshine_element = $parser->parse($html);
28              
29             =head1 AUTHOR
30              
31             Robert Acock, C<< >>
32              
33             =head1 BUGS
34              
35             Please report any bugs or feature requests to C, or through
36             the web interface at L. I will be notified, and then you'll
37             automatically be notified of progress on your bug as I make changes.
38              
39             =head1 SUPPORT
40              
41             You can find documentation for this module with the perldoc command.
42              
43             perldoc Moonshine::Parser
44              
45             You can also look for information at:
46              
47             =over 4
48              
49             =item * RT: CPAN's request tracker (report bugs here)
50              
51             L
52              
53             =item * Search CPAN
54              
55             L
56              
57             =back
58              
59             =head1 ACKNOWLEDGEMENTS
60              
61             =head1 LICENSE AND COPYRIGHT
62              
63             Copyright 2017->2025 Robert Acock.
64              
65             This program is free software; you can redistribute it and/or modify it
66             under the terms of the the Artistic License (2.0). You may obtain a
67             copy of the full license at:
68              
69             L
70              
71             Any use, modification, and distribution of the Standard or Modified
72             Versions is governed by this Artistic License. By using, modifying or
73             distributing the Package, you accept this license. Do not use, modify,
74             or distribute the Package, if you do not accept this license.
75              
76             If your Modified Version has been derived from a Modified Version made
77             by someone other than you, you are nevertheless required to ensure that
78             your Modified Version complies with the requirements of this license.
79              
80             This license does not grant you the right to use any trademark, service
81             mark, tradename, or logo of the Copyright Holder.
82              
83             This license includes the non-exclusive, worldwide, free-of-charge
84             patent license to make, have made, use, offer to sell, sell, import and
85             otherwise transfer the Package with respect to any patent claims
86             licensable by the Copyright Holder that are necessarily infringed by the
87             Package. If you institute patent litigation (including a cross-claim or
88             counterclaim) against any party alleging that the Package constitutes
89             direct or contributory patent infringement, then this Artistic License
90             to you shall terminate on the date that such litigation is filed.
91              
92             Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
93             AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
94             THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
95             PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
96             YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
97             CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
98             CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
99             EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
100              
101             =cut
102              
103             1; # End of Moonshine::Parser