| 1 | package Org::ElementRole::Inline; | ||||||||||
| 2 | |||||||||||
| 3 | 32 | ▶ | use 5.010; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 32 | ▶ | use Moo::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 32 | requires 'as_text'; | |||||||||
| 7 | |||||||||||
| 8 | 32 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |||||||||
| 9 | 32 | our $DATE = '2026-07-21'; # DATE | |||||||||
| 10 | 32 | our $DIST = 'Org-Parser'; # DIST | |||||||||
| 11 | 32 | our $VERSION = '0.563'; # VERSION | |||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub is_block { 0 } | ||||||||
|
Subroutine
is_block: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 14 | |||||||||||
| 15 | 0 | ▶ | sub is_inline { 1 } | ||||||||
|
Subroutine
is_inline: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 16 | |||||||||||
| 17 | 1 | ▶ | sub children_as_text { | ||||||||
|
Subroutine
children_as_text: called CC=2 SCAR=10.1
Pod
documented
| |||||||||||
| 18 | 1 | my ($self) = @_; | |||||||||
| 19 | 1 | ▶ | return "" unless $self->children; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 0 | join "", map {$_->as_text} @{$self->children}; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 32 | 1; | |||||||||
| 24 | # ABSTRACT: Role for inline elements | ||||||||||
| 25 | |||||||||||
| 26 | __END__ | ||||||||||