| 1 | package Bolts::Blueprint::Built; | ||
| 2 | 11 | $Bolts::Blueprint::Built::VERSION = '0.143171'; | |
| 3 | # ABSTRACT: Build an artifact by running a subroutine | ||
| 4 | |||
| 5 | 11 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 11 | with 'Bolts::Blueprint'; | |
| 8 | |||
| 9 | 11 | ▶ | use Carp (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | |||
| 12 | 11 | has builder => ( | |
| 13 | isa => 'CodeRef', | ||
| 14 | reader => 'the_builder', | ||
| 15 | required => 1, | ||
| 16 | traits => [ 'Code' ], | ||
| 17 | handles => { | ||
| 18 | 'call_builder' => 'execute_method', | ||
| 19 | }, | ||
| 20 | ); | ||
| 21 | |||
| 22 | |||
| 23 | 57 | ▶ | sub builder { |
|
Subroutine
builder: called CC=1 SCAR=0.0
Pod
documented
| |||
| 24 | 57 | my ($self, $bag, $name, @params) = @_; | |
| 25 | 57 | $self->call_builder($bag, $name, @params); | |
| 26 | } | ||
| 27 | |||
| 28 | 11 | __PACKAGE__->meta->make_immutable; | |
| 29 | |||
| 30 | __END__ | ||