Notebook/Cell.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package HTML::Notebook::Cell;
2  
3 use strict;
4 use warnings;
5 use utf8;
6  
7 use Moose;
8 use UUID::Tiny ':std';
9 use namespace::autoclean;
10  
11 =encoding utf-8
12  
13 =head1 NAME
14  
15 HTML::Notebook::Cell - Notebook Cell
16  
17 =head1 SYNOPSIS
18  
19 use HTML::Notebook::Cell;
20 my $cell = HTML::Notebook::Cell->new(content => 'This is a generic cell');
21
22 =head1 DESCRIPTION
23  
24 Notebook cell
25  
26 =head1 METHODS
27  
28 =cut
29  
30 has 'content' => ( is => 'rw', );
31  
32 has 'id' => ( is => 'ro',
33 default => sub { return create_uuid_as_string(UUID_TIME) } );
34  
35 __PACKAGE__->meta()->make_immutable;
36  
37 1;
38  
39 __END__