« blib/lib/HTML/Widgets/NavMenu/JQueryTreeView.pm
↑ Summary
blib/lib/HTML/Widgets/NavMenu/Tree/Iterator/Stack.pm »
| 1 | package HTML::Widgets::NavMenu::Object; | ||
| 2 | 37 | $HTML::Widgets::NavMenu::Object::VERSION = '1.0902'; | |
| 3 | 37 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 37 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 37 | ▶ | use Class::XSAccessor (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | sub new | ||
| 9 | { | ||
| 10 | 3671 | ▶ | my $class = shift; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | 3671 | my $self = {}; | |
| 12 | |||
| 13 | 3671 | bless $self, $class; | |
| 14 | |||
| 15 | 3671 | $self->_init(@_); | |
| 16 | |||
| 17 | 3658 | return $self; | |
| 18 | } | ||
| 19 | |||
| 20 | sub _init | ||
| 21 | { | ||
| 22 | 3 | ▶ | my $self = shift; |
|
Subroutine
_init: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 3 | return 0; | |
| 25 | } | ||
| 26 | |||
| 27 | sub destroy_ | ||
| 28 | { | ||
| 29 | 3671 | ▶ | my $self = shift; |
|
Subroutine
destroy_: called CC=1 SCAR=0.0
Pod
documented
| |||
| 30 | |||
| 31 | 3671 | return 0; | |
| 32 | } | ||
| 33 | |||
| 34 | sub DESTROY | ||
| 35 | { | ||
| 36 | 3671 | ▶ | my $self = shift; |
|
Subroutine
DESTROY: called CC=1 SCAR=0.0
| |||
| 37 | |||
| 38 | 3671 | $self->destroy_(); | |
| 39 | } | ||
| 40 | |||
| 41 | |||
| 42 | sub mk_accessors | ||
| 43 | { | ||
| 44 | 1 | ▶ | my $package = shift; |
|
Subroutine
mk_accessors: called CC=1 SCAR=0.0
Pod
documented
| |||
| 45 | 1 | return $package->mk_acc_ref( [@_] ); | |
| 46 | } | ||
| 47 | |||
| 48 | |||
| 49 | sub mk_acc_ref | ||
| 50 | { | ||
| 51 | 223 | ▶ | my $package = shift; |
|
Subroutine
mk_acc_ref: called CC=1 SCAR=0.0
Pod
documented
| |||
| 52 | 223 | my $names = shift; | |
| 53 | |||
| 54 | 223 | my $mapping = +{ map { $_ => $_ } @$names }; | |
| 55 | |||
| 56 | ## no critic | ||
| 57 | 223 | eval <<"EOF"; | |
| 58 | package $package; | ||
| 59 | |||
| 60 | Class::XSAccessor->import( | ||
| 61 | accessors => \$mapping, | ||
| 62 | ); | ||
| 63 | EOF | ||
| 64 | |||
| 65 | ## use critic | ||
| 66 | } | ||
| 67 | |||
| 68 | |||
| 69 | 37 | 1; | |
| 70 | |||
| 71 | __END__ | ||