| 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__ |