File Coverage

blib/lib/Forest/Tree/Roles/JSONable.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Forest::Tree::Roles::JSONable;
2 1     1   2880 use Moose::Role;
  1         2  
  1         15  
3              
4             our $VERSION = '0.10';
5             our $AUTHORITY = 'cpan:STEVAN';
6              
7             requires 'as_json';
8              
9 1     1   7133 no Moose::Role; 1;
  1         4  
  1         7  
10              
11             __END__
12              
13             =pod
14              
15             =head1 NAME
16              
17             Forest::Tree::Roles::JSONable - An abstract role for providing JSON serialization
18              
19             =head1 DESCRIPTION
20              
21             This is just an abstract role for trees capable of JSON serialization.
22              
23             =head1 REQUIRED METHODS
24              
25             =over 4
26              
27             =item B<as_json (?%options)>
28              
29             Return a JSON string of the invocant. Takes C<%options>
30             parameter to specify the way the tree is to be dumped.
31              
32             =back
33              
34             =head1 BUGS
35              
36             All complex software has bugs lurking in it, and this module is no
37             exception. If you find a bug please either email me, or add the bug
38             to cpan-RT.
39              
40             =head1 AUTHOR
41              
42             Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
43              
44             =head1 COPYRIGHT AND LICENSE
45              
46             Copyright 2008-2014 Infinity Interactive, Inc.
47              
48             L<http://www.iinteractive.com>
49              
50             This library is free software; you can redistribute it and/or modify
51             it under the same terms as Perl itself.
52              
53             =cut