Wiki/Plugin/Inline/Email.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Wiki/Plugin/Inline/Del.pm ↑ Summary Wiki/Plugin/Inline/Italic.pm »
1 package Text::Livedoor::Wiki::Plugin::Inline::Email;
2  
3 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 10 ▶use base qw(Text::Livedoor::Wiki::Plugin::Inline);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 10 __PACKAGE__->regex(q{([a-zA-Z0-9_\-\.]+\@[a-zA-Z0-9_\-\.]+)});
8 10 __PACKAGE__->n_args(1);
9  
10 1 ▶sub process {
Subroutine process: called CC=1 SCAR=0.0
Pod documented
11 1 my ( $class , $inline , $email ) = @_;
12 1 return (qq{<a href="mailto:$email">$email</a>});
13 }
14  
15 10 1;
16  
17 =head1 NAME
18  
19 Text::Livedoor::Wiki::Plugin::Inline::Email - Email Inline Plugin
20  
21 =head1 DESCRIPTION
22  
23 make clickable email text
24  
25 =head1 SYNOPSIS
26  
27 polocky@livedoor.com
28  
29 =head1 FUNCTION
30  
31 =head2 process
32  
33 =head1 AUTHOR
34  
35 polocky
36  
37 =cut
« Wiki/Plugin/Inline/Del.pm ↑ Summary Wiki/Plugin/Inline/Italic.pm »