File Coverage

blib/lib/Treex/PML/Resource/URI.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod 1 1 100.0
total 9 9 100.0


line stmt bran cond sub pod time code
1             package # hide from Pause
2             Treex::PML::Resource::URI;
3              
4             =head1 NAME
5              
6             Treex::PML::Resource::URI
7              
8             =head1 DESCRIPTION
9              
10             Referenced files coming from a resource path are blessed to this class
11             so Treex::PML knows where they came from and correctly saves their
12             names without relative paths.
13              
14             =head1 Methods
15              
16             =over 4
17              
18             =item new
19              
20             The constructor, see L.
21              
22             =back
23              
24             =cut
25              
26 8     8   2635 use parent 'URI::file';
  8         1808  
  8         75  
27              
28             # URI::file can't be inherited from, its constructor always creates
29             # URI::file objects.
30             sub new {
31 26     26 1 87 my ($class, @params) = @_;
32 26         142 my $o = 'URI::file'->new(@params);
33 26         3045 bless $o, $class
34             }
35              
36             1