| 1 | package MVC::Neaf::X; | ||
| 2 | |||
| 3 | 60 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 60 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 60 | 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 | ▶ | use parent qw(MVC::Neaf::Util::Base); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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<MVC::Neaf> suite. | ||
| 56 | |||
| 57 | Copyright 2016-2023 Konstantin S. Uvarin C<khedin@cpan.org>. | ||
| 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<http://dev.perl.org/licenses/> for more information. | ||
| 64 | |||
| 65 | =cut | ||
| 66 | |||
| 67 | 60 | 1; | |