| 1 | package VCI::Abstract::File; | ||
| 2 | 4 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 4 | with 'VCI::Abstract::Committable'; | |
| 5 | |||
| 6 | 4 | has 'is_executable' => (is => 'ro', isa => 'Bool', lazy_build => 1); | |
| 7 | 4 | has 'content' => (is => 'ro', isa => 'Str', lazy_build => 1); | |
| 8 | 4 | has 'content_size' => (is => 'ro', isa => 'Int', lazy_build => 1); | |
| 9 | |||
| 10 | # Because composed roles don't call BUILD, this is in all objects that | ||
| 11 | # implment Committable. | ||
| 12 | 0 | ▶ | sub BUILD { shift->_no_time_without_revision; } |
|
Subroutine
BUILD: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 13 | |||
| 14 | 0 | ▶ | sub _build_content_size { return length(shift->content) } |
|
Subroutine
_build_content_size: not called CC=1 SCAR=6.9
| |||
| 15 | |||
| 16 | 4 | __PACKAGE__->meta->make_immutable; | |
| 17 | |||
| 18 | 4 | 1; | |
| 19 | |||
| 20 | __END__ | ||