1Perl::Critic::PolicyParUasmeerteCProe:nr:tlBr:ei:hbCaurvtiietodirc:P::e:IrPnlotleDigocecyruP(ma3er)natmaettieorn::Behavior::Integer(3)
2
3
4
6 Perl::Critic::PolicyParameter::Behavior::Integer - Actions appropriate
7 for an integer parameter.
8
10 Provides a standard set of functionality for an integer
11 Perl::Critic::PolicyParameter so that the developer of a policy does
12 not have to provide it her/himself.
13
14 The parser provided by this behavior allows underscores ("_") in input
15 values as in a Perl numeric literal.
16
17 NOTE: Do not instantiate this class. Use the singleton instance held
18 onto by Perl::Critic::PolicyParameter.
19
21 This is considered to be a non-public class. Its interface is subject
22 to change without notice.
23
25 "initialize_parameter( $parameter, $specification )"
26 Plug in the functionality this behavior provides into the
27 parameter, based upon the configuration provided by the
28 specification.
29
30 This behavior looks for two configuration items:
31
32 integer_minimum
33 Optional. The minimum acceptable value. Inclusive.
34
35 integer_maximum
36 Optional. The maximum acceptable value. Inclusive.
37
38 "generate_parameter_description( $parameter )"
39 Create a description of the parameter, based upon the description
40 on the parameter itself, but enhancing it with information from
41 this behavior.
42
43 In this case, this means including the minimum and maximum values.
44
46 Elliot Shank <perl@galumph.com>
47
49 Copyright (c) 2007-2011 Elliot Shank.
50
51 This program is free software; you can redistribute it and/or modify it
52 under the same terms as Perl itself. The full text of this license can
53 be found in the LICENSE file included with this module.
54
55
56
57perl v5.16.3 Perl::C2r0i1t4i-c0:6:-P0o9licyParameter::Behavior::Integer(3)