1Perl::Critic::PolicyParUasmeerteCro:n:tBreihbauvtiePoderr(Pl3e:)r:lCrDiotciucm:e:nPtoaltiicoynParameter::Behavior(3)
2
3
4
6 Perl::Critic::PolicyParameter::Behavior - Default type-specific actions
7 for a parameter.
8
10 Provides a standard set of functionality for a
11 Perl::Critic::PolicyParameter so that the developer of a policy does
12 not have to provide it her/himself. The developer can override most of
13 the functionality in the subclasses; these are just defaults.
14
15 All subclasses have singleton instances held onto by
16 Perl::Critic::PolicyParameter.
17
19 This is considered to be a non-public class. Its interface is subject
20 to change without notice.
21
23 "initialize_parameter( $parameter, $specification )"
24 Plug in the functionality this behavior provides into the
25 parameter, based upon the configuration provided by the
26 specification. The configuration items looked for depends upon the
27 specific behavior subclass.
28
29 "generate_parameter_description( $parameter )"
30 Create a description of the parameter, based upon the description
31 on the parameter itself, but enhancing it with information from
32 this behavior.
33
34 Note that this may return "undef" if the parameter itself doesn't
35 have a description. Also, the returned value may include multiple
36 lines.
37
39 Elliot Shank <perl@galumph.com>
40
42 Copyright (c) 2006-2011 Elliot Shank.
43
44 This program is free software; you can redistribute it and/or modify it
45 under the same terms as Perl itself. The full text of this license can
46 be found in the LICENSE file included with this module.
47
48
49
50perl v5.28.1 201P9e-r0l2:-:0C2ritic::PolicyParameter::Behavior(3)