blib/lib/Hash/AutoHash/Args/V0.pm

filter: Statementstmt 100% 44 / 44 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 15 / 15 Podpod 100% 8 / 8 totaltotal 100% 67 / 67 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« _build/lib/My/Builder.pm ↑ Summary
1 package Hash::AutoHash::Args::V0;
2 #################################################################################
3 #
4 # Author: Nat Goodman
5 # Created: 09-03-05
6 # $Id:
7 #
8 # Simplifies processing of keyward argument lists.
9 # Replaces Class::AutoClass::Args using Class::AutoClass:Hash and tied hash to
10 # provide cleaner, more powerful interface.
11 # Completely compatible with Class::AutoClass::Args.
12 # Use Hash::AutoHash::Args if compatibility with Class::AutoClass::Args NOT needed
13 #
14 #################################################################################
15 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 9 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 9 ▶use Hash::AutoHash;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 9 ▶use base qw(Hash::AutoHash::Args);
Subroutine BEGIN: called CC=1 SCAR=0.0
19 9 our $VERSION='1.18_01';
20  
21 9 our @NORMAL_EXPORT_OK=@Hash::AutoHash::Args::EXPORT_OK;
22 9 my $helper_class=__PACKAGE__.'::helper';
23 9 our @EXPORT_OK=$helper_class->EXPORT_OK;
24 9 our @SUBCLASS_EXPORT_OK=$helper_class->SUBCLASS_EXPORT_OK;
25  
26 ################################################################################
27 # methods needed for compatibility with Class::AutoClass::Args
28 # implementations live in Hash::AutoHash::Args::helper
29 ################################################################################
30 9 my $helper_class='Hash::AutoHash::Args::helper';
31 9 ▶no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
32 5 ▶sub get_args { &{$helper_class.'::get_args'} }
Subroutine get_args: called CC=1 SCAR=0.0
Pod documented
33 3 ▶sub getall_args { &{$helper_class.'::getall_args'} }
Subroutine getall_args: called CC=1 SCAR=0.0
Pod documented
34 2 ▶sub set_args { &{$helper_class.'::set_args'} }
Subroutine set_args: called CC=1 SCAR=0.0
Pod documented
35 1 ▶sub fix_args { &{$helper_class.'::fix_args'} }
Subroutine fix_args: called CC=1 SCAR=0.0
Pod documented
36 9 *_fix_args=\&fix_args;
37 1 ▶sub fix_keyword { &{$helper_class.'::fix_keyword'} }
Subroutine fix_keyword: called CC=1 SCAR=0.0
Pod documented
38 1 ▶sub fix_keywords { &{$helper_class.'::fix_keywords'} }
Subroutine fix_keywords: called CC=1 SCAR=0.0
Pod documented
39 2 ▶sub is_keyword { &{$helper_class.'::is_keyword'} }
Subroutine is_keyword: called CC=1 SCAR=0.0
Pod documented
40 2 ▶sub is_positional { &{$helper_class.'::is_positional'} }
Subroutine is_positional: called CC=1 SCAR=0.0
Pod documented
41  
42 #################################################################################
43 # helper package exists to avoid polluting Hash::AutoHash::Args namespace with
44 # subs that would mask accessor/mutator AUTOLOADs
45 # needed here to get EXPORT_OK, SUBCLASS_EXPORT_OK, import methods from base helper
46 #################################################################################
47 package Hash::AutoHash::Args::V0::helper;
48 9 our $VERSION=$Hash::AutoHash::Args::V0::VERSION;
49 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
50 BEGIN {
51 9 ▶ our @ISA=qw(Hash::AutoHash::Args::helper);
Subroutine BEGIN: called CC=1 SCAR=0.0
52 }
53  
54 package Hash::AutoHash::Args::V0; # so CPAN will connect POD to main class
55  
56 9 1;
57  
58 __END__
« _build/lib/My/Builder.pm ↑ Summary