| 1 | package Acme::BABYMETAL; | ||||||||||||||||||
| 2 | 5 | ▶ | use 5.008001; | ||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||
| 3 | 5 | ▶ | use strict; | ||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||
| 4 | 5 | ▶ | use warnings; | ||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||
| 5 | |||||||||||||||||||
| 6 | 5 | our $VERSION = "0.03"; | |||||||||||||||||
| 7 | |||||||||||||||||||
| 8 | 5 | my @members = qw(SU-METAL YUIMETAL MOAMETAL); | |||||||||||||||||
| 9 | |||||||||||||||||||
| 10 | 4 | ▶ | sub new { | ||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||
| 11 | 4 | my $class = shift; | |||||||||||||||||
| 12 | 4 | my $self = bless {members => []}, $class; | |||||||||||||||||
| 13 | 4 | for my $member (@members) { | |||||||||||||||||
| 14 | 12 | $member =~ s|-|_|; | |||||||||||||||||
| 15 | 12 | my $module_name = 'Acme::BABYMETAL::' . $member; | |||||||||||||||||
| 16 | 12 | eval qq|require $module_name;|; | |||||||||||||||||
| 17 | 12 | push @{$self->{members}}, $module_name->new; | |||||||||||||||||
| 18 | } | ||||||||||||||||||
| 19 | 4 | return $self; | |||||||||||||||||
| 20 | } | ||||||||||||||||||
| 21 | |||||||||||||||||||
| 22 | 1 | ▶ | sub homepage { | ||||||||||||||||
|
Subroutine
homepage: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||
| 23 | 1 | my ($self) = @_; | |||||||||||||||||
| 24 | 1 | return 'http://www.babymetal.jp/'; | |||||||||||||||||
| 25 | } | ||||||||||||||||||
| 26 | |||||||||||||||||||
| 27 | 1 | ▶ | sub youtube { | ||||||||||||||||
|
Subroutine
youtube: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||
| 28 | 1 | my ($self) = @_; | |||||||||||||||||
| 29 | 1 | return 'https://www.youtube.com/BABYMETAL'; | |||||||||||||||||
| 30 | } | ||||||||||||||||||
| 31 | |||||||||||||||||||
| 32 | 1 | ▶ | sub facebook { | ||||||||||||||||
|
Subroutine
facebook: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||
| 33 | 1 | my ($self) = @_; | |||||||||||||||||
| 34 | 1 | return 'https://www.facebook.com/BABYMETAL.jp/'; | |||||||||||||||||
| 35 | } | ||||||||||||||||||
| 36 | |||||||||||||||||||
| 37 | 1 | ▶ | sub instagram { | ||||||||||||||||
|
Subroutine
instagram: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||
| 38 | 1 | my ($self) = @_; | |||||||||||||||||
| 39 | 1 | return 'https://www.instagram.com/babymetal_official/'; | |||||||||||||||||
| 40 | } | ||||||||||||||||||
| 41 | |||||||||||||||||||
| 42 | 1 | ▶ | sub twitter { | ||||||||||||||||
|
Subroutine
twitter: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||
| 43 | 1 | my ($self) = @_; | |||||||||||||||||
| 44 | 1 | return 'https://twitter.com/BABYMETAL_JAPAN'; | |||||||||||||||||
| 45 | } | ||||||||||||||||||
| 46 | |||||||||||||||||||
| 47 | 14 | ▶ | sub members { | ||||||||||||||||
|
Subroutine
members: called CC=5 SCAR=16.3
Pod
undocumented
| |||||||||||||||||||
| 48 | 14 | my ($self, $member) = @_; | |||||||||||||||||
| 49 | 14 | ▶ | return @{$self->{members}} unless $member; | ||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||
| 50 | |||||||||||||||||||
| 51 | 13 | ▶ | if ( $member =~ /^S/i ) { | ||||||||||||||||
|
Branch: 3 branches
| |||||||||||||||||||
| 52 | 4 | @members = $self->{members}[0]; | |||||||||||||||||
| 53 | } elsif ( $member =~ /^Y/i ) { | ||||||||||||||||||
| 54 | 5 | @members = $self->{members}[1]; | |||||||||||||||||
| 55 | } elsif ( $member =~ /^M/i ) { | ||||||||||||||||||
| 56 | 4 | @members = $self->{members}[2]; | |||||||||||||||||
| 57 | } else { | ||||||||||||||||||
| 58 | 0 | @members = @{$self->{members}}; | |||||||||||||||||
| 59 | } | ||||||||||||||||||
| 60 | 13 | return @members; | |||||||||||||||||
| 61 | } | ||||||||||||||||||
| 62 | |||||||||||||||||||
| 63 | 0 | ▶ | sub shout { | ||||||||||||||||
|
Subroutine
shout: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||
| 64 | 0 | my ($self) = @_; | |||||||||||||||||
| 65 | 0 | print "We are BABYMETAL DEATH!!\n"; | |||||||||||||||||
| 66 | } | ||||||||||||||||||
| 67 | |||||||||||||||||||
| 68 | |||||||||||||||||||
| 69 | 5 | 1; | |||||||||||||||||
| 70 | __END__ | ||||||||||||||||||