| 1 | package W3C::SOAP::WADL::XSD; | ||||||||||||||
| 2 | |||||||||||||||
| 3 | # Created on: 2014-07-22 20:38:05 | ||||||||||||||
| 4 | # Create by: Ivan Wills | ||||||||||||||
| 5 | # $Id$ | ||||||||||||||
| 6 | # $Revision$, $HeadURL$, $Date$ | ||||||||||||||
| 7 | # $Revision$, $Source$, $Date$ | ||||||||||||||
| 8 | |||||||||||||||
| 9 | 1 | ▶ | use Moose; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 10 | 1 | ▶ | use namespace::autoclean; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 11 | 1 | ▶ | use version; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 12 | 1 | ▶ | use Carp; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 13 | 1 | ▶ | use Data::Dumper qw/Dumper/; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 14 | 1 | ▶ | use English qw/ -no_match_vars /; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 15 | |||||||||||||||
| 16 | 1 | extends 'W3C::SOAP::XSD::Document'; | |||||||||||||
| 17 | |||||||||||||||
| 18 | 1 | our $VERSION = version->new('0.007'); | |||||||||||||
| 19 | |||||||||||||||
| 20 | 0 | ▶ | around BUILDARGS => sub { | ||||||||||||
|
Subroutine
__ANON__: not called CC=4 SCAR=30.0
| |||||||||||||||
| 21 | 0 | my ($orig, $class, @args) = @_; | |||||||||||||
| 22 | 0 | ▶ | my $args | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 23 | = !@args ? {} | ||||||||||||||
| 24 | : @args == 1 ? $args[0] | ||||||||||||||
| 25 | : {@args}; | ||||||||||||||
| 26 | |||||||||||||||
| 27 | 0 | ▶ | if ( $args->{node} ) { | ||||||||||||
|
Branch: 1 branch
| |||||||||||||||
| 28 | 0 | my $uri = $args->{node}->ownerDocument->URI; | |||||||||||||
| 29 | 0 | $uri =~ s{/([^/]+)$}{/}xms; | |||||||||||||
| 30 | 0 | $args->{location} = $uri . $args->{node}->getAttribute('href'); | |||||||||||||
| 31 | } | ||||||||||||||
| 32 | 0 | warn Dumper $args; | |||||||||||||
| 33 | |||||||||||||||
| 34 | 0 | return $class->$orig($args); | |||||||||||||
| 35 | 1 | }; | |||||||||||||
| 36 | |||||||||||||||
| 37 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||||||
| 38 | |||||||||||||||
| 39 | 1 | 1; | |||||||||||||
| 40 | |||||||||||||||
| 41 | __END__ | ||||||||||||||