File Coverage

blib/lib/UI/Various/PoorTerm/Text.pm
Criterion Covered Total %
statement 25 25 100.0
branch n/a
condition n/a
subroutine 9 9 100.0
pod n/a
total 34 34 100.0


line stmt bran cond sub pod time code
1             package UI::Various::PoorTerm::Text;
2              
3             # Author, Copyright and License: see end of file
4              
5             =head1 NAME
6              
7             UI::Various::PoorTerm::Text - concrete implementation of L
8              
9             =head1 SYNOPSIS
10              
11             # This module should never be used directly!
12             # It is used indirectly via the following:
13             use UI::Various::Text;
14              
15             =head1 ABSTRACT
16              
17             This module is the specific minimal fallback implementation of
18             L. It manages and hides everything specific to the last
19             resort UI.
20              
21             =head1 DESCRIPTION
22              
23             The documentation of this module is only intended for developers of the
24             package itself.
25              
26             =cut
27              
28             #########################################################################
29              
30 5     5   80 use v5.14;
  5         13  
31 5     5   21 use strictures;
  5         6  
  5         23  
32 5     5   646 no indirect 'fatal';
  5         9  
  5         18  
33 5     5   219 no multidimensional;
  5         7  
  5         27  
34 5     5   134 use warnings 'once';
  5         9  
  5         222  
35              
36             our $VERSION = '0.23';
37              
38 5     5   25 use UI::Various::core;
  5         9  
  5         27  
39 5     5   24 use UI::Various::Text;
  5         9  
  5         124  
40 5     5   1249 use UI::Various::PoorTerm::base;
  5         13  
  5         719  
41              
42             require Exporter;
43             our @ISA = qw(UI::Various::Text UI::Various::PoorTerm::base);
44             our @EXPORT_OK = qw();
45              
46             #########################################################################
47             #########################################################################
48              
49             =head1 METHODS
50              
51             =cut
52              
53             #########################################################################
54              
55             =head2 B<_show> - print UI element
56              
57             $ui_element->_show($prefix);
58              
59             =head3 example:
60              
61             $_->_show(' ');
62              
63             =head3 parameters:
64              
65             $prefix text in front of first line
66              
67             =head3 description:
68              
69             Show (print) the UI element. I
70             UI::Various::PoorTerm container elements!>
71              
72             =cut
73              
74             # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
75              
76             sub _show($$)
77             {
78 66     66   6584 my ($self, $prefix) = @_;
79              
80 66         229 print $self->_wrap($prefix, $self->text), "\n";
81             }
82              
83             1;
84              
85             #########################################################################
86             #########################################################################
87              
88             =head1 SEE ALSO
89              
90             L, L
91              
92             =head1 LICENSE
93              
94             Copyright (C) Thomas Dorner.
95              
96             This library is free software; you can redistribute it and/or modify it
97             under the same terms as Perl itself. See LICENSE file for more details.
98              
99             =head1 AUTHOR
100              
101             Thomas Dorner Edorner (at) cpan (dot) orgE
102              
103             =cut