Babelfish/Phrase/Node.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Babelfish/Phrase/Literal.pm ↑ Summary Babelfish/Phrase/Variable.pm »
1 package Locale::Babelfish::Phrase::Node;
2  
3 # ABSTRACT: Babelfish AST abstract node.
4  
5 14 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 14 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 14 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 14 ▶use parent qw( Class::Accessor::Fast );
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 14 our $VERSION = '2.13'; # VERSION
12  
13  
14 419 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
15 419 my ( $class, %args ) = @_;
16 419 return bless { %args }, $class;
17 }
18  
19  
20 164 ▶sub to_perl_escaped_str {
Subroutine to_perl_escaped_str: called CC=1 SCAR=0.0
Pod documented
21 164 my ( $self, $str ) = @_;
22  
23 164 $str =~ s/\\/\\\\/g;
24 164 $str =~ s/'/\\'/g;
25 164 return "'$str'";
26 }
27  
28 14 1;
29  
30 __END__
« Babelfish/Phrase/Literal.pm ↑ Summary Babelfish/Phrase/Variable.pm »