Jacquard/Role/Render/QnD/Size/Direct.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use Renard::Incunabula::Common::Setup;
2 package Intertangle::Jacquard::Role::Render::QnD::Size::Direct;
3 # ABSTRACT: Quick-and-dirty role for computing size from width / height
4 $Intertangle::Jacquard::Role::Render::QnD::Size::Direct::VERSION = '0.001';
5 use Mu::Role;
6  
7 lazy size => method() {
8 Intertangle::Yarn::Graphene::Size->new(
9 height => ref $self->height ? $self->height->value : $self->height,
10 width => ref $self->width ? $self->width->value : $self->width,
11 );
12 };
13  
14 1;
15  
16 __END__
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 Intertangle::Jacquard::Role::Render::QnD::Size::Direct - Quick-and-dirty role for computing size from width / height
25  
26 =head1 VERSION
27  
28 version 0.001
29  
30 =head1 AUTHOR
31  
32 Zakariyya Mughal <zmughal@cpan.org>
33  
34 =head1 COPYRIGHT AND LICENSE
35  
36 This software is copyright (c) 2017 by Zakariyya Mughal.
37  
38 This is free software; you can redistribute it and/or modify it under
39 the same terms as the Perl 5 programming language system itself.
40  
41 =cut