| 1 | package Text::Trac::Text; | ||||||||||
| 2 | 48 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 48 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 48 | our $VERSION = '0.23'; | |||||||||
| 6 | |||||||||||
| 7 | sub new { | ||||||||||
| 8 | 0 | ▶ | my $class = shift; | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 9 | 0 | my %args = @_; | |||||||||
| 10 | my $self = { | ||||||||||
| 11 | context => $args{context}, | ||||||||||
| 12 | 0 | html => '', | |||||||||
| 13 | }; | ||||||||||
| 14 | 0 | bless $self, $class; | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | sub parse { | ||||||||||
| 18 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
parse: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 19 | 0 | $self->{html} = ''; | |||||||||
| 20 | 0 | ▶ | my $text = shift or return; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 0 | $self->{html} = $text; | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 0 | ▶ | sub html { $_[0]->{html}; } | ||||||||
|
Subroutine
html: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 25 | |||||||||||
| 26 | 48 | 1; | |||||||||