File Coverage

blib/lib/Grid/Layout/Line.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 22 23 95.6


line stmt bran cond sub pod time code
1             #_{ Encoding and name
2             =encoding utf8
3             =head1 NAME
4              
5             Grid::Layout::Line
6              
7             =cut
8             #_}
9             package Grid::Layout::Line;
10             #_{ use …
11 2     2   10 use warnings;
  2         3  
  2         50  
12 2     2   8 use strict;
  2         3  
  2         29  
13 2     2   7 use utf8;
  2         3  
  2         7  
14              
15 2     2   30 use Carp;
  2         4  
  2         213  
16             #_}
17             our $VERSION = 0.01;
18             #_{ Synopsis
19              
20             =head1 SYNOPSIS
21             =cut
22             #_}
23             #_{ Description
24              
25             =head1 DESCRIPTION
26              
27             A C<< Grid::Layout::Line >> is an indefinitismal thin line that runs either
28             horizontally or vertically from one end of a grid to the other.
29              
30             Of course, when the grid is rendered, the line might become thicker than indefinitismal thin (think border).
31              
32             =cut
33             #_}
34             #_{ Methods
35             #_{ POD
36             =head1 METHODS
37             =cut
38             #_}
39             sub new { #_{
40             #_{ POD
41             =head2 new
42              
43             my $line = Grid::Layout::Line->new($V_or_H);
44              
45             This function should not be called by a user. It is called by L<< Grid::Layout/_add_line >>.
46              
47             =cut
48             #_}
49              
50 20     20 0 26 my $class = shift;
51 20         29 my $V_or_H = shift;
52              
53 20         33 my $self = {};
54 20         29 bless $self, $class;
55 20         51 return $self;
56              
57             } #_}
58             #_}
59             #_{ POD: Copyright
60              
61             =head1 Copyright
62             Copyright © 2017 René Nyffenegger, Switzerland. All rights reserved.
63             This program is free software; you can redistribute it and/or modify it
64             under the terms of the the Artistic License (2.0). You may obtain a
65             copy of the full license at: L
66             =cut
67              
68             #_}
69              
70             'tq84';
71