PPI/Token/Quote/Interpolate.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 26 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PPI/Token/Quote.pm ↑ Summary PPI/Token/Quote/Literal.pm »
1 package PPI::Token::Quote::Interpolate;
2  
3 =pod
4  
5 =head1 NAME
6  
7 PPI::Token::Quote::Interpolate - The interpolation quote-like operator
8  
9 =head1 INHERITANCE
10  
11 PPI::Token::Quote::Interpolate
12 isa PPI::Token::Quote
13 isa PPI::Token
14 isa PPI::Element
15  
16 =head1 DESCRIPTION
17  
18 A C<PPI::Token::Quote::Interpolate> object represents a single
19 interpolation quote-like operator, such as C<qq{$foo bar $baz}>.
20  
21 =head1 METHODS
22  
23 There are no methods available for C<PPI::Token::Quote::Interpolate>
24 beyond those provided by the parent L<PPI::Token::Quote>, L<PPI::Token> and
25 L<PPI::Element> classes.
26  
27 =cut
28  
29 62 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 62 ▶use PPI::Token::Quote ();
Subroutine BEGIN: called CC=1 SCAR=0.0
31 62 ▶use PPI::Token::_QuoteEngine::Full ();
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 62 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
34 BEGIN {
35 62 ▶ $VERSION = '1.236';
Subroutine BEGIN: called CC=1 SCAR=0.0
36 62 @ISA = qw{
37 PPI::Token::_QuoteEngine::Full
38 PPI::Token::Quote
39 };
40 }
41  
42  
43  
44  
45  
46 #####################################################################
47 # PPI::Token::Quote Methods
48  
49 sub string {
50 8 ▶ my $self = shift;
Subroutine string: called CC=1 SCAR=0.0
Pod documented
51 8 my @sections = $self->_sections;
52 8 my $str = $sections[0];
53 8 substr( $self->{content}, $str->{position}, $str->{size} );
54 }
55  
56 62 1;
57  
58 =pod
59  
60 =head1 SUPPORT
61  
62 See the L<support section|PPI/SUPPORT> in the main module.
63  
64 =head1 AUTHOR
65  
66 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
67  
68 =head1 COPYRIGHT
69  
70 Copyright 2001 - 2011 Adam Kennedy.
71  
72 This program is free software; you can redistribute
73 it and/or modify it under the same terms as Perl itself.
74  
75 The full text of the license can be found in the
76 LICENSE file included with this module.
77  
78 =cut
« PPI/Token/Quote.pm ↑ Summary PPI/Token/Quote/Literal.pm »