File Coverage

lib/Class/Generic.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 14 14 100.0


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Class Bundle - ~/lib/Class/Generic.pm
3             ## Version v0.1.0
4             ## Copyright(c) 2022 DEGUEST Pte. Ltd.
5             ## Author: Jacques Deguest <jack@deguest.jp>
6             ## Created 2022/03/07
7             ## Modified 2022/03/07
8             ## All rights reserved
9             ##
10             ## This program is free software; you can redistribute it and/or modify it
11             ## under the same terms as Perl itself.
12             ##----------------------------------------------------------------------------
13             BEGIN
14             {
15             use strict;
16 2     2   85299 use warnings;
  2         12  
  2         48  
17 2     2   8 use parent qw( Module::Generic );
  2         2  
  2         44  
18 2     2   389 our $VERSION = 'v0.1.0';
  2         256  
  2         7  
19 2     2   21827146 };
20              
21             1;
22              
23              
24             =encoding utf-8
25              
26             =head1 NAME
27              
28             Class::Generic - Class Generic
29              
30             =head1 SYNOPSIS
31              
32             use parent qw( Class::Generic )
33              
34             sub init
35             {
36             my $self = shift( @_ );
37             return( $self->SUPER::init( @_ ) );
38             }
39              
40             my $array = Class::Array->new( $something );
41             my $array = Class::Array->new( [$something] );
42             my $hash = Class::Assoc->new;
43             my $bool = Class::Boolean->new;
44             my $ex = Class::Exception->new( message => "Oh no", code => 500 );
45             my $file = Class::File->new( '/some/where/file.txt' );
46             my $finfo = Class::Finfo->new( '/some/where/file.txt' );
47             my $null = Class::NullChain->new;
48             my $num = Class::Number->new( 10 );
49             my $str = Class::Scalar->new( 'Some string' );
50              
51             # For details on the api provided, please check each of the module documentation.
52              
53             =head1 VERSION
54              
55             v0.1.0
56              
57             =head1 DESCRIPTION
58              
59             This package inherits all its features from L<Module::Generic> and provides a generic framework of methods to inherit from and speed up development.
60              
61             =head1 METHODS
62              
63             See L<Module::Generic>
64              
65             =head1 AUTHOR
66              
67             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
68              
69             =head1 SEE ALSO
70              
71             L<Class::Generic>, L<Class::Array>, L<Class::Scalar>, L<Class::Number>, L<Class::Boolean>, L<Class::Assoc>, L<Class::File>, L<Class::DateTime>, L<Class::Exception>, L<Class::Finfo>, L<Class::NullChain>
72              
73             =head1 COPYRIGHT & LICENSE
74              
75             Copyright(c) 2022 DEGUEST Pte. Ltd.
76              
77             You can use, copy, modify and redistribute this package and associated
78             files under the same terms as Perl itself.
79              
80             =cut