| 1 | #Copyright (c) 2010 Joachim Bargsten <code at bargsten dot org>. All rights reserved. | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | package Bio::Gonzales::Role::BioPerl::Constructor; | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 1 | ▶ | use Mouse::Role; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 9 | 1 | ▶ | use Carp; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 1 | ▶ | use 5.010; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 12 | 1 | our $VERSION = '0.058'; # VERSION | |||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | around BUILDARGS => sub { | ||||||||||||||||||||
| 15 | 6 | ▶ | my $orig = shift; | ||||||||||||||||||
|
Subroutine
__ANON__: called CC=5 SCAR=16.4
| |||||||||||||||||||||
| 16 | 6 | my $class = shift; | |||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | 6 | ▶ | return $class->$orig(@_) unless ( substr( $_[0] || '', 0, 1 ) eq '-' ); | ||||||||||||||||||
|
Branch: 1 branch
Condition50%1/2
$_[0] || ''
MC/DC0%0/1
$_[0] || ''
$_[0]
Truth table50%1/2
A
A= $_[0]
| |||||||||||||||||||||
| 19 | 6 | ▶ | push @_, undef unless $#_ % 2; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 6 | my %param; | |||||||||||||||||||
| 22 | 6 | ▶ | while (@_) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 23 | 6 | ( my $key = shift ) =~ tr/A-Z\055/a-z/d; #deletes all dashes! | |||||||||||||||||||
| 24 | 6 | $param{$key} = shift; | |||||||||||||||||||
| 25 | } | ||||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | 6 | return $class->$orig(%param); | |||||||||||||||||||
| 28 | 1 | }; | |||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | 1 | 1; | |||||||||||||||||||