Neaf/View/Dumper.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Neaf/Route/PreRoute.pm ↑ Summary Neaf/X.pm »
1 package MVC::Neaf::View::Dumper;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 our $VERSION = '0.2901';
7  
8 =head1 NAME
9  
10 MVC::Neaf::View::Dumper - Data::Dumper interface for Not Even A Framework
11  
12 =head1 USAGE
13  
14 Use the following to debug your application:
15  
16 perl -MMVC::Neaf=view,Dumper <your_application> '/path/to?foo=42&bar=137'
17  
18 Maybe this module could also be useful if you want to frighten you site's
19 users to death on April, 1.
20  
21 =head1 METHODS
22  
23 =cut
24  
25 3 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 3 ▶use parent qw(MVC::Neaf::View);
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 =head2 render( \%data )
29  
30 Return a Perl dump and "text/plain".
31  
32 =cut
33  
34 2 ▶sub render {
Subroutine render: called CC=1 SCAR=0.0
Pod documented
35 2 my ($self, $data) = @_;
36  
37 2 local $Data::Dumper::Indent = 1;
38  
39 2 return (Dumper($data), "text/plain");
40 };
41  
42 =head1 LICENSE AND COPYRIGHT
43  
44 This module is part of L<MVC::Neaf> suite.
45  
46 Copyright 2016-2023 Konstantin S. Uvarin C<khedin@cpan.org>.
47  
48 This program is free software; you can redistribute it and/or modify it
49 under the terms of either: the GNU General Public License as published
50 by the Free Software Foundation; or the Artistic License.
51  
52 See L<http://dev.perl.org/licenses/> for more information.
53  
54 =cut
55  
56 3 1;
« Neaf/Route/PreRoute.pm ↑ Summary Neaf/X.pm »