| 1 | package Bot::Training::Plugin; | ||
| 2 | 1 | our $AUTHORITY = 'cpan:AVAR'; | |
| 3 | 1 | $Bot::Training::Plugin::VERSION = '0.06'; | |
| 4 | 1 | ▶ | use 5.010; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use File::ShareDir qw< :ALL >; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use File::Spec::Functions qw< catdir catfile >; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use namespace::clean -except => 'meta'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | sub file { | ||
| 11 | 0 | ▶ | my ($self) = @_; |
|
Subroutine
file: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 12 | |||
| 13 | 0 | my $class = ref $self; | |
| 14 | 0 | my ($last) = $class =~ m[::([^:]+)$]; | |
| 15 | 0 | $class =~ s[::][-]g; | |
| 16 | |||
| 17 | 0 | my $file = dist_file( $class, lc($last) . '.trn'); | |
| 18 | |||
| 19 | 0 | return $file; | |
| 20 | } | ||
| 21 | |||
| 22 | 1 | __PACKAGE__->meta->make_immutable; | |