| 1 | package JavaScript::Code::Function::BuildIn; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 2 | ▶ | use vars qw[ $VERSION ]; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 2 | ▶ | use base qw[ JavaScript::Code::Function ]; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 2 | $VERSION = '0.08'; | |||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | =head1 NAME | ||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | JavaScript::Code::Function::BuildIn - JavaScript Build-In Functions | ||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | =head1 METHODS | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | =cut | ||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | =head2 is_buildin | ||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | =cut | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 0 | ▶ | sub is_buildin { return 1; } | ||||||||||||||||||
|
Subroutine
is_buildin: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | =head2 return | ||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | The return function. | ||||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | =cut | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | 0 | ▶ | sub return { | ||||||||||||||||||
|
Subroutine
return: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||
| 30 | 0 | my $obj = shift; | |||||||||||||||||||
| 31 | 0 | ▶ | my $class = ref $obj || $obj; | ||||||||||||||||||
|
Condition0%0/3
ref $obj || $obj
MC/DC0%0/2
ref $obj || $obj
ref $obj
$obj
Truth table0%0/3
A || B
A= ref $objB= $obj
| |||||||||||||||||||||
| 32 | |||||||||||||||||||||
| 33 | 0 | return $class->new( name => 'return' ); | |||||||||||||||||||
| 34 | } | ||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | =head1 SEE ALSO | ||||||||||||||||||||
| 37 | |||||||||||||||||||||
| 38 | L<JavaScript::Code> | ||||||||||||||||||||
| 39 | |||||||||||||||||||||
| 40 | =head1 AUTHOR | ||||||||||||||||||||
| 41 | |||||||||||||||||||||
| 42 | Sascha Kiefer, C<esskar@cpan.org> | ||||||||||||||||||||
| 43 | |||||||||||||||||||||
| 44 | =head1 LICENSE | ||||||||||||||||||||
| 45 | |||||||||||||||||||||
| 46 | This library is free software, you can redistribute it and/or modify it under | ||||||||||||||||||||
| 47 | the same terms as Perl itself. | ||||||||||||||||||||
| 48 | |||||||||||||||||||||
| 49 | 1; | ||||||||||||||||||||