Perl::...nteger(3pm)
π NAME π
bestie, welcome to the Perl::...nteger(3pm) page from User Contributed Perl Documentation. The actual star of the show is Perl::Critic::PolicyParameter::Behavior::Integer β and it's literally all about actions appropriate for an integer parameter. π
β¨ DESCRIPTION β¨
Okay so this class hands you a standard set of functionality for an integer Perl::Critic::PolicyParameter, so the developer of a policy doesnβt have to provide it her/himself. Slay.
The parser provided by this behavior allows underscores (_) in input values as in a Perl numeric literal. Cute.
π¨ NOTE: Do not instantiate this class. Use the singleton instance held onto by Perl::Critic::PolicyParameter. No cap.
π¦ INTERFACE SUPPORT π¦
Heads up, bestie: this is considered to be a non-public class. Its interface is subject to change without notice. It's giving βlook but donβt get too comfortable.β π
π₯ METHODS π₯
π
initialize_parameter( $parameter, $specification )
Plug in the functionality this behavior provides into the parameter, based upon the configuration provided by the specification. Iconic.
This behavior looks for two configuration items:
integer_minimumβ Optional. The minimum acceptable value. Inclusive.integer_maximumβ Optional. The maximum acceptable value. Inclusive.
πΈ generate_parameter_description( $parameter )
Create a description of the parameter, based upon the description on the parameter itself, but enhancing it with information from this behavior. Obsessed.
In this case, this means including the minimum and maximum values. Periodt.
π«Ά AUTHOR π«Ά
Elliot Shank <perl@galumph.com>
π COPYRIGHT π
Copyright (c) 2007-2011 Elliot Shank.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.
π cute little sign-off: this page came from perl v5.42.0, dated 2024-10-23. bye bestie, go slay some integer params! π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Perl-Critic 1.156.0-bp160.1.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms