| 1 | package JavaScript::Code::Function::Result::Element; | ||||||||||||
| 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[ | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | JavaScript::Code::Element | ||||||||||||
| 7 | 2 | ]; | |||||||||||
| 8 | |||||||||||||
| 9 | 2 | __PACKAGE__->mk_accessors(qw[ value ]); | |||||||||||
| 10 | |||||||||||||
| 11 | 2 | $VERSION = '0.08'; | |||||||||||
| 12 | |||||||||||||
| 13 | =head1 NAME | ||||||||||||
| 14 | |||||||||||||
| 15 | JavaScript::Code::Function::Result::Element - A JavaScript Function Result Element | ||||||||||||
| 16 | |||||||||||||
| 17 | =head1 METHODS | ||||||||||||
| 18 | |||||||||||||
| 19 | =head2 $self->output( ) | ||||||||||||
| 20 | |||||||||||||
| 21 | =cut | ||||||||||||
| 22 | |||||||||||||
| 23 | 0 | ▶ | sub output { | ||||||||||
|
Subroutine
output: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 24 | 0 | my $self = shift; | |||||||||||
| 25 | 0 | ▶ | my $scope = shift || 1; | ||||||||||
|
Condition0%0/2
shift() || 1
MC/DC0%0/1
shift() || 1
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||
| 26 | 0 | my $indenting = $self->get_indenting($scope); | |||||||||||
| 27 | |||||||||||||
| 28 | 0 | return $indenting . $self->value . ";\n"; | |||||||||||
| 29 | } | ||||||||||||
| 30 | |||||||||||||
| 31 | =head1 SEE ALSO | ||||||||||||
| 32 | |||||||||||||
| 33 | L<JavaScript::Code> | ||||||||||||
| 34 | |||||||||||||
| 35 | =head1 AUTHOR | ||||||||||||
| 36 | |||||||||||||
| 37 | Sascha Kiefer, C<esskar@cpan.org> | ||||||||||||
| 38 | |||||||||||||
| 39 | =head1 LICENSE | ||||||||||||
| 40 | |||||||||||||
| 41 | This library is free software, you can redistribute it and/or modify it under | ||||||||||||
| 42 | the same terms as Perl itself. | ||||||||||||
| 43 | |||||||||||||
| 44 | =cut | ||||||||||||
| 45 | |||||||||||||
| 46 | 2 | 1; | |||||||||||