Wiki/Plugin/Function/Superscript.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Wiki/Plugin/Function.pm ↑ Summary Wiki/Plugin/Inline.pm »
1 package Text::Livedoor::Wiki::Plugin::Function::Superscript;
2  
3 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 11 ▶use base qw/Text::Livedoor::Wiki::Plugin::Function/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 11 __PACKAGE__->function_name('sup');
7  
8 4 ▶sub process {
Subroutine process: called CC=1 SCAR=0.0
Pod documented
9 4 my ( $class, $inline, $data ) = @_;
10 4 my $value = $data->{value};
11 4 $value = $inline->parse( $value );
12 4 return "<sup>$value</sup>";
13 }
14  
15 11 1;
16  
17 =head1 NAME
18  
19 Text::Livedoor::Wiki::Plugin::Function::Superscript - Superscript Function Plugin
20  
21 =head1 DESCRIPTION
22  
23 write superscript text.
24  
25 =head1 SYNOPSIS
26  
27 &sup(){text here here here};
28  
29 =head1 FUNCTION
30  
31 =head2 process
32  
33 =head1 AUTHOR
34  
35 polocky
36  
37 =cut
« Wiki/Plugin/Function.pm ↑ Summary Wiki/Plugin/Inline.pm »