| 1 | package Translate::Fluent::Elements::BlockPlaceable; | ||||||||||
| 2 | |||||||||||
| 3 | 6 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 6 | extends 'Translate::Fluent::Elements::Base'; | |||||||||
| 5 | |||||||||||
| 6 | has inline_placeable => ( | ||||||||||
| 7 | is => 'ro', | ||||||||||
| 8 | 0 | ▶ | default => sub { undef }, | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 9 | 6 | ); | |||||||||
| 10 | |||||||||||
| 11 | 4 | ▶ | sub translate { | ||||||||
|
Subroutine
translate: called CC=2 SCAR=7.6
Pod
documented
| |||||||||||
| 12 | 4 | my ($self, $variables) = @_; | |||||||||
| 13 | |||||||||||
| 14 | 4 | ▶ | if ($self->inline_placeable) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 4 | return $self->inline_placeable->translate( $variables ); | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 0 | return ''; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 6 | 1; | |||||||||
| 22 | |||||||||||
| 23 | __END__ | ||||||||||