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.002';
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__