File Coverage

blib/lib/Locale/Babelfish/Phrase/Variable.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 20 20 100.0


line stmt bran cond sub pod time code
1             package Locale::Babelfish::Phrase::Variable;
2              
3             # ABSTRACT: Babelfish AST Variable substitution node.
4              
5 4     4   21 use utf8;
  4         9  
  4         16  
6 4     4   99 use strict;
  4         8  
  4         60  
7 4     4   16 use warnings;
  4         5  
  4         153  
8              
9             our $VERSION = '2.003'; # VERSION
10              
11 4     4   18 use parent qw( Locale::Babelfish::Phrase::Node );
  4         6  
  4         16  
12              
13             __PACKAGE__->mk_accessors( qw( name ) );
14              
15             sub to_perl_escaped_str {
16 16     16 1 30 my ( $self ) = @_;
17              
18 16         244 return $self->SUPER::to_perl_escaped_str( $self->name );
19             }
20              
21             1;
22              
23             __END__
24              
25             =pod
26              
27             =encoding UTF-8
28              
29             =head1 NAME
30              
31             Locale::Babelfish::Phrase::Variable - Babelfish AST Variable substitution node.
32              
33             =head1 VERSION
34              
35             version 2.003
36              
37             =head1 AUTHORS
38              
39             =over 4
40              
41             =item *
42              
43             Akzhan Abdulin <akzhan@cpan.org>
44              
45             =item *
46              
47             Igor Mironov <grif@cpan.org>
48              
49             =item *
50              
51             Victor Efimov <efimov@reg.ru>
52              
53             =item *
54              
55             REG.RU LLC
56              
57             =back
58              
59             =head1 COPYRIGHT AND LICENSE
60              
61             This software is Copyright (c) 2014 by REG.RU LLC.
62              
63             This is free software, licensed under:
64              
65             The MIT (X11) License
66              
67             =cut