| 1 | package QuadPres::Base; | ||
| 2 | 6 | $QuadPres::Base::VERSION = '0.28.4'; | |
| 3 | 6 | ▶ | use 5.016; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 6 | ▶ | use Class::XSAccessor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | sub new | ||
| 10 | { | ||
| 11 | 0 | ▶ | my $class = shift; |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 12 | 0 | my $self = {}; | |
| 13 | 0 | bless $self, $class; | |
| 14 | |||
| 15 | # May throw an exception. | ||
| 16 | 0 | $self->_init(@_); | |
| 17 | |||
| 18 | 0 | return $self; | |
| 19 | } | ||
| 20 | |||
| 21 | sub mk_accessors | ||
| 22 | { | ||
| 23 | 0 | ▶ | my $package = shift; |
|
Subroutine
mk_accessors: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 24 | 0 | return $package->mk_acc_ref( [@_] ); | |
| 25 | } | ||
| 26 | |||
| 27 | sub mk_acc_ref | ||
| 28 | { | ||
| 29 | 5 | ▶ | my $package = shift; |
|
Subroutine
mk_acc_ref: called CC=1 SCAR=0.0
Pod
documented
| |||
| 30 | 5 | my $names = shift; | |
| 31 | |||
| 32 | 5 | my $mapping = +{ map { $_ => $_ } @$names }; | |
| 33 | |||
| 34 | 5 | eval <<"EOF"; | |
| 35 | package $package; | ||
| 36 | |||
| 37 | Class::XSAccessor->import( | ||
| 38 | accessors => \$mapping, | ||
| 39 | ); | ||
| 40 | EOF | ||
| 41 | |||
| 42 | } | ||
| 43 | |||
| 44 | 6 | 1; | |
| 45 | |||
| 46 | __END__ | ||
| 47 | |||
| 48 | =pod | ||
| 49 | |||
| 50 | =encoding UTF-8 | ||
| 51 | |||
| 52 | =head1 NAME | ||
| 53 | |||
| 54 | QuadPres::Base - base class | ||
| 55 | |||
| 56 | =head1 VERSION | ||
| 57 | |||
| 58 | version 0.28.4 | ||
| 59 | |||
| 60 | =head1 SYNOPSIS | ||
| 61 | |||
| 62 | =head1 DESCRIPTION | ||
| 63 | |||
| 64 | =head1 METHODS | ||
| 65 | |||
| 66 | =head2 new() | ||
| 67 | |||
| 68 | =head2 mk_accessors | ||
| 69 | |||
| 70 | =head2 mk_acc_ref | ||
| 71 | |||
| 72 | =head2 | ||
| 73 | |||
| 74 | =for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan | ||
| 75 | |||
| 76 | =head1 SUPPORT | ||
| 77 | |||
| 78 | =head2 Websites | ||
| 79 | |||
| 80 | The following websites have more information about this module, and may be of help to you. As always, | ||
| 81 | in addition to those websites please use your favorite search engine to discover more resources. | ||
| 82 | |||
| 83 | =over 4 | ||
| 84 | |||
| 85 | =item * | ||
| 86 | |||
| 87 | MetaCPAN | ||
| 88 | |||
| 89 | A modern, open-source CPAN search engine, useful to view POD in HTML format. | ||
| 90 | |||
| 91 | L<https://metacpan.org/release/QuadPres> | ||
| 92 | |||
| 93 | =item * | ||
| 94 | |||
| 95 | RT: CPAN's Bug Tracker | ||
| 96 | |||
| 97 | The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN. | ||
| 98 | |||
| 99 | L<https://rt.cpan.org/Public/Dist/Display.html?Name=QuadPres> | ||
| 100 | |||
| 101 | =item * | ||
| 102 | |||
| 103 | CPANTS | ||
| 104 | |||
| 105 | The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution. | ||
| 106 | |||
| 107 | L<http://cpants.cpanauthors.org/dist/QuadPres> | ||
| 108 | |||
| 109 | =item * | ||
| 110 | |||
| 111 | CPAN Testers | ||
| 112 | |||
| 113 | The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions. | ||
| 114 | |||
| 115 | L<http://www.cpantesters.org/distro/Q/QuadPres> | ||
| 116 | |||
| 117 | =item * | ||
| 118 | |||
| 119 | CPAN Testers Matrix | ||
| 120 | |||
| 121 | The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms. | ||
| 122 | |||
| 123 | L<http://matrix.cpantesters.org/?dist=QuadPres> | ||
| 124 | |||
| 125 | =item * | ||
| 126 | |||
| 127 | CPAN Testers Dependencies | ||
| 128 | |||
| 129 | The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution. | ||
| 130 | |||
| 131 | L<http://deps.cpantesters.org/?module=QuadPres> | ||
| 132 | |||
| 133 | =back | ||
| 134 | |||
| 135 | =head2 Bugs / Feature Requests | ||
| 136 | |||
| 137 | Please report any bugs or feature requests by email to C<bug-quadpres at rt.cpan.org>, or through | ||
| 138 | the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=QuadPres>. You will be automatically notified of any | ||
| 139 | progress on the request by the system. | ||
| 140 | |||
| 141 | =head2 Source Code | ||
| 142 | |||
| 143 | The code is open to the world, and available for you to hack on. Please feel free to browse it and play | ||
| 144 | with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull | ||
| 145 | from your repository :) | ||
| 146 | |||
| 147 | L<https://github.com/shlomif/quad-pres> | ||
| 148 | |||
| 149 | git clone https://github.com/shlomif/quad-pres.git | ||
| 150 | |||
| 151 | =head1 AUTHOR | ||
| 152 | |||
| 153 | Shlomi Fish <shlomif@cpan.org> | ||
| 154 | |||
| 155 | =head1 BUGS | ||
| 156 | |||
| 157 | Please report any bugs or feature requests on the bugtracker website | ||
| 158 | L<https://github.com/shlomif/quad-pres/issues> | ||
| 159 | |||
| 160 | When submitting a bug or request, please include a test-file or a | ||
| 161 | patch to an existing test-file that illustrates the bug or desired | ||
| 162 | feature. | ||
| 163 | |||
| 164 | =head1 COPYRIGHT AND LICENSE | ||
| 165 | |||
| 166 | This software is Copyright (c) 2019 by Shlomi Fish. | ||
| 167 | |||
| 168 | This is free software, licensed under: | ||
| 169 | |||
| 170 | The MIT (X11) License | ||
| 171 | |||
| 172 | =cut | ||