File Coverage

blib/lib/MVC/Neaf/X.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package MVC::Neaf::X;
2              
3 60     60   94279 use strict;
  60         154  
  60         1732  
4 60     60   293 use warnings;
  60         164  
  60         2792  
5             our $VERSION = '0.2901';
6              
7             # This class is empty (yet).
8             # See MVC::Neaf::Util::Base for implementation
9              
10             =head1 NAME
11              
12             MVC::Neaf::X - base class for Not Even A Framework extentions.
13              
14             =head1 SYNOPSIS
15              
16             package MVC::Neaf::X::My::Module;
17             use parent qw(MVC::Neaf::X);
18              
19             sub foo {
20             my $self = shift;
21              
22             $self->my_croak("unimplemented"); # will die with package & foo prepended
23             };
24              
25             1;
26              
27             =head1 DESCRIPTION
28              
29             Start out a Neaf extention by subclassing this class.
30              
31             Some convenience methods here to help develop.
32              
33             =head1 METHODS
34              
35             =cut
36              
37 60     60   777 use parent qw(MVC::Neaf::Util::Base);
  60         431  
  60         420  
38              
39             =head2 new( %options )
40              
41             Will happily accept any args and pack them into self.
42              
43             =cut
44              
45             =head2 my_croak( $message )
46              
47             Like croak() from Carp, but the message is prefixed
48             with self's package and the name of method
49             in which error occurred.
50              
51             =cut
52              
53             =head1 LICENSE AND COPYRIGHT
54              
55             This module is part of L suite.
56              
57             Copyright 2016-2023 Konstantin S. Uvarin C.
58              
59             This program is free software; you can redistribute it and/or modify it
60             under the terms of either: the GNU General Public License as published
61             by the Free Software Foundation; or the Artistic License.
62              
63             See L for more information.
64              
65             =cut
66              
67             1;