| 1 | package Makefile::AST::Rule::Base; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use base 'Class::Accessor::Fast'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 2 | __PACKAGE__->mk_ro_accessors(qw{ | |
| 8 | normal_prereqs order_prereqs commands colon | ||
| 9 | target | ||
| 10 | }); | ||
| 11 | |||
| 12 | sub add_command ($$) { | ||
| 13 | 0 | ▶ | my ($self, $cmd) = @_; |
|
Subroutine
add_command: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 14 | 0 | push @{ $self->{commands} }, $cmd; | |
| 15 | } | ||
| 16 | |||
| 17 | sub has_command ($) { | ||
| 18 | 0 | ▶ | my ($self) = @_; |
|
Subroutine
has_command: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 19 | 0 | return scalar @{ $self->commands }; | |
| 20 | } | ||
| 21 | |||
| 22 | 2 | 1; | |