File Coverage

blib/lib/Text/Glob/Expand/Segment.pm
Criterion Covered Total %
statement 7 8 87.5
branch n/a
condition n/a
subroutine 3 4 75.0
pod 2 2 100.0
total 12 14 85.7


line stmt bran cond sub pod time code
1             package Text::Glob::Expand::Segment;
2 2     2   15 use strict;
  2         5  
  2         94  
3 2     2   11 use warnings;
  2         5  
  2         263  
4              
5             our $VERSION = '1.1.1'; # VERSION
6              
7 250     250 1 728 sub depth { shift->[1] }
8 0     0 1   sub text { shift->[0] }
9              
10             1; # Magic true value required at end of module
11             __END__
12              
13             =head1 NAME
14              
15             Text::Glob::Expand::Segment - describes a portion of text parsed from a glob pattern
16              
17             =head1 VERSION
18              
19             version 1.1.1
20              
21             =head1 SYNOPSIS
22              
23             This is an internal class, embedded within the implementation data of
24             a C<Text::Glob::Expand> object returned by C<< ->parse >>. You should
25             never need to access this class directly.
26              
27              
28             =head1 INTERFACE
29              
30             =head2 C<< $int = $obj->depth >>
31              
32             Returns the depth of the brace from which this segment comes.
33              
34             =head2 C<< $str = $obj->text >>
35              
36             Returns the text alternative this segment represents.
37              
38             =head1 AUTHOR
39              
40             Nick Stokoe C<< <wulee@cpan.org> >>
41              
42              
43             =head1 LICENCE AND COPYRIGHT
44              
45             Copyright (c) 2011, Nick Stokoe C<< <wulee@cpan.org> >>. All rights reserved.
46              
47             This module is free software; you can redistribute it and/or
48             modify it under the same terms as Perl itself. See L<perlartistic>.
49              
50              
51             =head1 DISCLAIMER OF WARRANTY
52              
53             BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
54             FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
55             OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
56             PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
57             EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
58             WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
59             ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
60             YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
61             NECESSARY SERVICING, REPAIR, OR CORRECTION.
62              
63             IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
64             WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
65             REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE
66             LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
67             OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
68             THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
69             RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
70             FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
71             SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
72             SUCH DAMAGES.