| 1 | package Lab::Moose::Sweep::DataFile; | ||
| 2 | 4 | $Lab::Moose::Sweep::DataFile::VERSION = '3.931'; | |
| 3 | # ABSTRACT: Store parameters of datafile and its plots. | ||
| 4 | 4 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use MooseX::Params::Validate 'validated_hash'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 4 | has params => ( is => 'ro', isa => 'HashRef', required => 1 ); | |
| 8 | |||
| 9 | has plots => ( | ||
| 10 | is => 'ro', isa => 'ArrayRef[HashRef]', | ||
| 11 | 17 | ▶ | default => sub { [] }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 12 | 4 | ); | |
| 13 | |||
| 14 | 0 | ▶ | sub add_plot { |
|
Subroutine
add_plot: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 15 | 0 | my ( $self, %args ) | |
| 16 | = validated_hash( \@_, MX_PARAMS_VALIDATE_ALLOW_EXTRA => 1 ); | ||
| 17 | 0 | push @{ $self->plots }, \%args; | |
| 18 | } | ||
| 19 | |||
| 20 | 4 | __PACKAGE__->meta->make_immutable(); | |
| 21 | 4 | 1; | |
| 22 | |||
| 23 | __END__ | ||