| 1 | package Yeb::Plugin::Locale::Simple; | ||||||||||
| 2 | 1 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | $Yeb::Plugin::Locale::Simple::AUTHORITY = 'cpan:GETTY'; | |||||||||
| 4 | } | ||||||||||
| 5 | # ABSTRACT: Yeb Plugin for Locale::Simple connection | ||||||||||
| 6 | 1 | $Yeb::Plugin::Locale::Simple::VERSION = '0.002'; | |||||||||
| 7 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use Locale::Simple; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | has app => ( is => 'ro', required => 1 ); | |||||||||
| 11 | |||||||||||
| 12 | 1 | has locales => ( | |||||||||
| 13 | is => 'ro', | ||||||||||
| 14 | predicate => 1, | ||||||||||
| 15 | ); | ||||||||||
| 16 | |||||||||||
| 17 | 0 | ▶ | sub BUILD { | ||||||||
|
Subroutine
BUILD: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 18 | 0 | my ( $self ) = @_; | |||||||||
| 19 | 0 | for my $func (@Locale::Simple::EXPORT) { | |||||||||
| 20 | 0 | ▶ | $self->app->register_function($func,sub { &{\&{$func}}(@_) }); | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 21 | }; | ||||||||||
| 22 | 0 | ▶ | l_dir($self->locales) if $self->has_locales; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 1 | 1; | |||||||||
| 26 | |||||||||||
| 27 | __END__ | ||||||||||