blib/lib/Kelp/Module/Config/Less.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« blib/lib/Kelp/Module/JSON.pm ↑ Summary blib/lib/Kelp/Module/Config/Null.pm »
1 package Kelp::Module::Config::Less;
2 2 ▶use Kelp::Base 'Kelp::Module::Config';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 # Kelp::Less applications start with no modules or middleware, but it surely
5 # can be used for normal applications as well.
6 2 ▶attr data => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
7 2 my $self = shift;
8 2 my $hash = $self->SUPER::data();
9  
10 2 $hash->{modules} = [];
11 2 $hash->{middleware} = [];
12  
13 2 return $hash;
14 2 };
15  
16 2 1;
17  
18 __END__
19  
20 =pod
21  
22 =head1 NAME
23  
24 Kelp::Module::Config::Less - Configuration with less defaults
25  
26 =head1 DESCRIPTION
27  
28 Light config with no modules or middleware by default. Good if you want less
29 defaults and used by L<Kelp::Less>.
30  
31 =head1 SEE ALSO
32  
33 L<Kelp::Module::Config>
34  
35 =cut
36  
« blib/lib/Kelp/Module/JSON.pm ↑ Summary blib/lib/Kelp/Module/Config/Null.pm »