Objects/Util.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.2% 20 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Objects/Attribute/Trait/DBIC.pm ↑ Summary
1 package DBIx::Class::Objects::Util;
2  
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.04';
7  
8 5 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
9 5 our @EXPORT_OK = qw(
10 class_name_to_private_accessor
11 );
12  
13 sub class_name_to_private_accessor {
14 43 ▶ my $class_name = shift;
Subroutine class_name_to_private_accessor: called CC=1 SCAR=0.0
Pod undocumented
15 43 my $accessor = '_' . lc $class_name;
16 43 $accessor =~ s/\W+/_/g;
17 43 return $accessor;
18 }
19  
20 5 1;
21  
22 __END__
23  
24 =head1 NAME
25  
26 DBIx::Class::Objects::Util - Internal utilities for DBIx::Class::Objects
27  
28 =head1 DESCRIPTION
29  
30 No user-serviceable parts inside.
31  
32 =head1 AUTHOR
33  
34 Curtis "Ovid" Poe, C<< <ovid at cpan.org> >>
35  
36 Dan Burke C<< dburke at addictmud.org >>
37  
38 =head1 BUGS
39  
40 Please report any bugs or feature requests to C<bug-object-bridge at
41 rt.cpan.org>, or through the web interface at
42 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DBIx-Class-Objects>. I will be
43 notified, and then you'll automatically be notified of progress on your bug as
44 I make changes.
45  
46 =head1 SUPPORT
47  
48 You can find documentation for this module with the perldoc command.
49  
50 perldoc DBIx::Class::Objects
51  
52 You can also look for information at:
53  
54 =over 4
55  
56 =item * RT: CPAN's request tracker (report bugs here)
57  
58 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=DBIx-Class-Objects>
59  
60 =item * AnnoCPAN: Annotated CPAN documentation
61  
62 L<http://annocpan.org/dist/DBIx-Class-Objects>
63  
64 =item * CPAN Ratings
65  
66 L<http://cpanratings.perl.org/d/DBIx-Class-Objects>
67  
68 =item * Search CPAN
69  
70 L<http://search.cpan.org/dist/DBIx-Class-Objects/>
71  
72 =back
73  
74  
75 =head1 ACKNOWLEDGEMENTS
76  
77  
78 =head1 LICENSE AND COPYRIGHT
79  
80 Copyright 2014 Curtis "Ovid" Poe.
81  
82 This program is free software; you can redistribute it and/or modify it
83 under the terms of the the Artistic License (2.0). You may obtain a
84 copy of the full license at:
85  
86 L<http://www.perlfoundation.org/artistic_license_2_0>
87  
88 Any use, modification, and distribution of the Standard or Modified
89 Versions is governed by this Artistic License. By using, modifying or
90 distributing the Package, you accept this license. Do not use, modify,
91 or distribute the Package, if you do not accept this license.
92  
93 If your Modified Version has been derived from a Modified Version made
94 by someone other than you, you are nevertheless required to ensure that
95 your Modified Version complies with the requirements of this license.
96  
97 This license does not grant you the right to use any trademark, service
98 mark, tradename, or logo of the Copyright Holder.
99  
100 This license includes the non-exclusive, worldwide, free-of-charge
101 patent license to make, have made, use, offer to sell, sell, import and
102 otherwise transfer the Package with respect to any patent claims
103 licensable by the Copyright Holder that are necessarily infringed by the
104 Package. If you institute patent litigation (including a cross-claim or
105 counterclaim) against any party alleging that the Package constitutes
106 direct or contributory patent infringement, then this Artistic License
107 to you shall terminate on the date that such litigation is filed.
108  
109 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
110 AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
111 THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
112 PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
113 YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
114 CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
115 CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
116 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
117  
« Objects/Attribute/Trait/DBIC.pm ↑ Summary