File Coverage

blib/lib/Locale/Babelfish/Phrase/Literal.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 1 1 100.0
total 24 24 100.0


line stmt bran cond sub pod time code
1             package Locale::Babelfish::Phrase::Literal;
2              
3             # ABSTRACT: Babelfish AST Literal node.
4              
5 11     11   252194 use utf8;
  11         271  
  11         68  
6 11     11   557 use strict;
  11         34  
  11         302  
7 11     11   47 use warnings;
  11         50  
  11         525  
8              
9 11     11   5846 use Locale::Babelfish::Phrase::Pluralizer ();
  11         57  
  11         632  
10              
11 11     11   88 use parent qw( Locale::Babelfish::Phrase::Node );
  11         31  
  11         151  
12              
13             our $VERSION = '2.13'; # VERSION
14              
15             __PACKAGE__->mk_accessors( qw( text ) );
16              
17              
18             sub to_perl_escaped_str {
19 70     70 1 143 my ( $self ) = @_;
20              
21 70         1864 return $self->SUPER::to_perl_escaped_str( $self->text );
22             }
23              
24             1;
25              
26             __END__
27              
28             =pod
29              
30             =encoding UTF-8
31              
32             =head1 NAME
33              
34             Locale::Babelfish::Phrase::Literal - Babelfish AST Literal node.
35              
36             =head1 VERSION
37              
38             version 2.13
39              
40             =head1 METHODS
41              
42             =head2 to_perl_escaped_str
43              
44             $str = $node->to_perl_escaped_str
45              
46             Returns node string to be used in Perl source code.
47              
48             =head1 AUTHORS
49              
50             =over 4
51              
52             =item *
53              
54             Akzhan Abdulin <akzhan@cpan.org>
55              
56             =item *
57              
58             Igor Mironov <grif@cpan.org>
59              
60             =item *
61              
62             Victor Efimov <efimov@reg.ru>
63              
64             =item *
65              
66             REG.RU LLC
67              
68             =item *
69              
70             Kirill Sysoev <k.sysoev@me.com>
71              
72             =item *
73              
74             Alexandr Tkach <tkach@reg.ru>
75              
76             =back
77              
78             =head1 COPYRIGHT AND LICENSE
79              
80             This software is Copyright (c) 2014 by REG.RU LLC.
81              
82             This is free software, licensed under:
83              
84             The MIT (X11) License
85              
86             =cut