| 1 | # -*- Perl -*- | ||||||||||||
| 2 | # | ||||||||||||
| 3 | # a string object (mostly so ->render can recurse through the parse tree) | ||||||||||||
| 4 | |||||||||||||
| 5 | package Lingua::Awkwords::String; | ||||||||||||
| 6 | |||||||||||||
| 7 | 7 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | 7 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | 7 | ▶ | use Moo; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | 7 | ▶ | use namespace::clean; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 11 | |||||||||||||
| 12 | 7 | our $VERSION = '0.10'; | |||||||||||
| 13 | |||||||||||||
| 14 | 7 | has string => (is => 'ro'); | |||||||||||
| 15 | |||||||||||||
| 16 | 358 | ▶ | sub render { $_[0]->string // '' } | ||||||||||
|
Subroutine
render: called CC=2 SCAR=7.6
Pod
documented
Condition50%1/2
$_[0]->string // ""
MC/DC0%0/1
$_[0]->string // ""
$_[0]->string
Truth table50%1/2
A
A= $_[0]->string
| |||||||||||||
| 17 | |||||||||||||
| 18 | 5 | ▶ | sub walk { | ||||||||||
|
Subroutine
walk: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 19 | 5 | my ($self, $callback) = @_; | |||||||||||
| 20 | 5 | $callback->($self); | |||||||||||
| 21 | 5 | return; | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 7 | 1; | |||||||||||
| 25 | __END__ | ||||||||||||