| 1 | 2 | ▶ | use 5.008; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package Data::Semantic::URI::ftp; | ||||||||||
| 6 | 2 | our $VERSION = '1.100850'; | |||||||||
| 7 | # ABSTRACT: Semantic data class for ftp URIs | ||||||||||
| 8 | 2 | ▶ | use parent qw(Data::Semantic::URI); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 2 | __PACKAGE__ | |||||||||
| 10 | ->mk_scalar_accessors(qw(type)) | ||||||||||
| 11 | ->mk_boolean_accessors(qw(password)); | ||||||||||
| 12 | 2 | ▶ | use constant REGEXP_KEYS => qw(URI FTP); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 2 | ▶ | use constant KEEP_KEYS => qw( | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | URI scheme username password host port abspath_full abspath_full_no_slash | ||||||||||
| 15 | abspath_full_no_slash_no_query type | ||||||||||
| 16 | 2 | ); | |||||||||
| 17 | |||||||||||
| 18 | 3 | ▶ | sub flags { | ||||||||
|
Subroutine
flags: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 19 | 3 | my $self = shift; | |||||||||
| 20 | 3 | my @flags = $self->SUPER::flags(@_); | |||||||||
| 21 | 3 | ▶ | push @flags => sprintf("-type => '%s'", $self->type) if $self->type; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | 3 | ▶ | push @flags => '-password' if $self->password; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 3 | @flags; | |||||||||
| 24 | } | ||||||||||
| 25 | 2 | 1; | |||||||||
| 26 | |||||||||||
| 27 | |||||||||||
| 28 | __END__ | ||||||||||