| 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<URI::file>. | ||
| 21 | |||
| 22 | =back | ||
| 23 | |||
| 24 | =cut | ||
| 25 | |||
| 26 | 9 | ▶ | use parent 'URI::file'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 27 | |||
| 28 | # URI::file can't be inherited from, its constructor always creates | ||
| 29 | # URI::file objects. | ||
| 30 | 27 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 31 | 27 | my ($class, @params) = @_; | |
| 32 | 27 | my $o = 'URI::file'->new(@params); | |
| 33 | 27 | bless $o, $class | |
| 34 | } | ||
| 35 | |||
| 36 | 9 | 1 | |