File Coverage

blib/lib/Org/Element/Target.pm
Criterion Covered Total %
statement 8 11 72.7
branch n/a
condition 0 2 0.0
subroutine 3 5 60.0
pod 2 2 100.0
total 13 20 65.0


line stmt bran cond sub pod time code
1              
2             use 5.010;
3 2     2   1094 use locale;
  2         7  
4 2     2   9 use Moo;
  2         4  
  2         12  
5 2     2   56 extends 'Org::Element';
  2         11  
  2         11  
6             with 'Org::ElementRole';
7             with 'Org::ElementRole::Inline';
8              
9             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
10             our $DATE = '2022-06-23'; # DATE
11             our $DIST = 'Org-Parser'; # DIST
12             our $VERSION = '0.558'; # VERSION
13              
14             has target => (is => 'rw');
15              
16             my ($self) = @_;
17             join("",
18 0     0 1   "<<", ($self->target // ""), ">>");
19 0   0       }
20              
21             goto \&as_string;
22             }
23              
24 0     0 1   1;
25             # ABSTRACT: Represent Org target
26              
27              
28             =pod
29              
30             =encoding UTF-8
31              
32             =head1 NAME
33              
34             Org::Element::Target - Represent Org target
35              
36             =head1 VERSION
37              
38             This document describes version 0.558 of Org::Element::Target (from Perl distribution Org-Parser), released on 2022-06-23.
39              
40             =head1 DESCRIPTION
41              
42             Derived from L<Org::Element>.
43              
44             =head1 ATTRIBUTES
45              
46             =head2 target
47              
48             =head1 METHODS
49              
50             =head2 as_string => str
51              
52             From L<Org::Element>.
53              
54             =head2 as_text => str
55              
56             From L<Org::ElementRole::Inline>.
57              
58             =head1 HOMEPAGE
59              
60             Please visit the project's homepage at L<https://metacpan.org/release/Org-Parser>.
61              
62             =head1 SOURCE
63              
64             Source repository is at L<https://github.com/perlancar/perl-Org-Parser>.
65              
66             =head1 AUTHOR
67              
68             perlancar <perlancar@cpan.org>
69              
70             =head1 CONTRIBUTING
71              
72              
73             To contribute, you can send patches by email/via RT, or send pull requests on
74             GitHub.
75              
76             Most of the time, you don't need to build the distribution yourself. You can
77             simply modify the code, then test via:
78              
79             % prove -l
80              
81             If you want to build the distribution (e.g. to try to install it locally on your
82             system), you can install L<Dist::Zilla>,
83             L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
84             Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required
85             beyond that are considered a bug and can be reported to me.
86              
87             =head1 COPYRIGHT AND LICENSE
88              
89             This software is copyright (c) 2022, 2021, 2020, 2019, 2017, 2016, 2015, 2014, 2013, 2012, 2011 by perlancar <perlancar@cpan.org>.
90              
91             This is free software; you can redistribute it and/or modify it under
92             the same terms as the Perl 5 programming language system itself.
93              
94             =head1 BUGS
95              
96             Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Org-Parser>
97              
98             When submitting a bug or request, please include a test-file or a
99             patch to an existing test-file that illustrates the bug or desired
100             feature.
101              
102             =cut