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