« blib/lib/Bat/Interpreter/Delegate/Executor/PartialDryRunner.pm
↑ Summary
blib/lib/Bat/Interpreter/Delegate/LineLogger/Silent.pm »
| 1 | package Bat::Interpreter::Delegate::FileStore::LocalFileSystem; | ||
| 2 | |||
| 3 | 23 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 23 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 23 | ▶ | use Path::Tiny; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 23 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 23 | with 'Bat::Interpreter::Role::FileStore'; | |
| 10 | |||
| 11 | 23 | our $VERSION = '0.023'; # VERSION | |
| 12 | |||
| 13 | sub get_contents { | ||
| 14 | 25 | ▶ | my $self = shift(); |
|
Subroutine
get_contents: called CC=1 SCAR=0.0
Pod
documented
| |||
| 15 | 25 | my $filename = shift(); | |
| 16 | 25 | $filename = Path::Tiny::path($filename); | |
| 17 | 25 | return $filename->slurp; | |
| 18 | } | ||
| 19 | |||
| 20 | 23 | 1; | |
| 21 | |||
| 22 | __END__ | ||