Writer/Entry.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 96.8% 31 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Writer.pm ↑ Summary
1 package Lingua::StarDict::Writer::Entry;
2  
3 2 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use Lingua::StarDict::Writer::Entry::Part;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 =encoding utf8
11 =cut
12  
13 =head1 NAME
14  
15 Lingua::StarDict::Writer::Entry - an internal module for Lingua::StarDict::Writer. Please read L<Lingua::StarDict::Writer> manual.
16  
17 =cut
18  
19  
20 2 has 'name' => (
21 is => 'rw',
22 default => "Some Dictionary written by Lingua::StarDict::Writer",
23 );
24  
25  
26 has '_parts' => (
27 is => 'rw',
28 18 ▶ default => sub { [] }
Subroutine __ANON__: called CC=1 SCAR=0.0
29 2 );
30  
31  
32 sub add_part
33 {
34 22 ▶ my $self = shift;
Subroutine add_part: called CC=1 SCAR=0.0
Pod undocumented
35 22 my @params = @_;
36  
37 22 my $res = Lingua::StarDict::Writer::Entry::Part->new(@params);
38 19 push @{$self->_parts}, $res;
39 19 return $res;
40 }
41  
42 =head1 LICENSE AND COPYRIGHT
43  
44 Copyright 2021 Nikolay Shaplov.
45  
46 This program is free software; you can redistribute it and/or modify it
47 under the terms of the the Artistic License (2.0). You may obtain a
48 copy of the full license at:
49  
50 L<http://www.perlfoundation.org/artistic_license_2_0>
51  
52 Any use, modification, and distribution of the Standard or Modified
53 Versions is governed by this Artistic License. By using, modifying or
54 distributing the Package, you accept this license. Do not use, modify,
55 or distribute the Package, if you do not accept this license.
56  
57 If your Modified Version has been derived from a Modified Version made
58 by someone other than you, you are nevertheless required to ensure that
59 your Modified Version complies with the requirements of this license.
60  
61 This license does not grant you the right to use any trademark, service
62 mark, tradename, or logo of the Copyright Holder.
63  
64 This license includes the non-exclusive, worldwide, free-of-charge
65 patent license to make, have made, use, offer to sell, sell, import and
66 otherwise transfer the Package with respect to any patent claims
67 licensable by the Copyright Holder that are necessarily infringed by the
68 Package. If you institute patent litigation (including a cross-claim or
69 counterclaim) against any party alleging that the Package constitutes
70 direct or contributory patent infringement, then this Artistic License
71 to you shall terminate on the date that such litigation is filed.
72  
73 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
74 AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
75 THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
76 PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
77 YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
78 CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
79 CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
80 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
81  
82  
83 =cut
84  
85 2 1;
86  
« Writer.pm ↑ Summary