| 1 | package Test::BDD::Infrastructure::Config::YAML; | ||
| 2 | |||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | # ABSTRACT: configuration class for Test::BDD::Infrastructure | ||
| 6 | 1 | our $VERSION = '1.005'; # VERSION | |
| 7 | |||
| 8 | 1 | extends 'Test::BDD::Infrastructure::Config::Hash'; | |
| 9 | |||
| 10 | 1 | ▶ | use YAML; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 1 | has 'file' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 13 | |||
| 14 | has 'config' => ( is => 'rw', lazy => 1, isa => 'HashRef', | ||
| 15 | 0 | ▶ | default => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 16 | 0 | my $self = shift; | |
| 17 | 0 | return YAML::LoadFile( $self->file ); | |
| 18 | }, | ||
| 19 | 1 | ); | |
| 20 | |||
| 21 | 1 | 1; | |
| 22 | |||
| 23 | __END__ | ||