blib/lib/Bubblegum/Class.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 4 | 6 | 66.6 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | n/a | ||
total | 6 | 8 | 75.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | # ABSTRACT: Object Orientation for Bubblegum via Moo | ||||||
2 | package Bubblegum::Class; | ||||||
3 | |||||||
4 | 15 | 15 | 174294 | use 5.10.0; | |||
15 | 50 | ||||||
15 | 651 | ||||||
5 | 15 | 15 | 15107 | use namespace::autoclean; | |||
0 | |||||||
0 | |||||||
6 | |||||||
7 | use Moo 'with'; | ||||||
8 | |||||||
9 | with 'Bubblegum::Role::Configuration'; | ||||||
10 | |||||||
11 | our $VERSION = '0.44'; # VERSION | ||||||
12 | |||||||
13 | sub import { | ||||||
14 | my $target = caller; | ||||||
15 | my $class = shift; | ||||||
16 | my @export = @_; | ||||||
17 | |||||||
18 | $class->prerequisites($target); | ||||||
19 | Moo->import::into($target, @export); | ||||||
20 | } | ||||||
21 | |||||||
22 | 1; | ||||||
23 | |||||||
24 | __END__ |