MooseX...terized(3pm)
β¨ NAME β¨
okay so bestie, welcome to MooseX::Declare::Context::Parameterized β she's the context for parsing optionally parameterized statements π
(manual page MooseX...terized(3pm), in case the truncated title was giving you a headache, iykyk).
πΈ VERSION πΈ
version 0.43 β that's the one, no cap π
π¦ DESCRIPTION π¦
So basically? This context trait adds optional parameterization functionality to the context. That's it, that's the whole vibe. She's a trait, she shows up, she makes parameterization optional, she slays π
π ATTRIBUTES π
π parameter_signature
This one gets set when the strip_parameter_signature method is called β and only when it managed to actually extract a list of parameterisations. So if she popped off and pulled the params out, boom, this attribute is filled in β¨ If not, she's staying quiet, periodt.
π METHODS π
π« has_parameter_signature
Predicate method for the parameter_signature attribute. Classic predicate behaviour β she just tells you if it's there or not π
π« add_parameter
Lets you store parameters extracted from parameter_signature so you can use them later on. Stashing them for future-you, iconic behaviour honestly π«Ά
π« get_parameters
Returns all the parameters you previously added. The whole collection, no holding back π
π« strip_parameter_signature
Maybe[Str] Object->strip_parameter_signature()
This method is meant to parse the main namespace of a namespaced keyword. She'll use Devel::Declare::Context::Simples's strip_word method and stash the result in the namespace attribute β but only if it's true. Truthy result β stored, no notes π
π SEE ALSO π
MooseX::DeclareMooseX::Declare::Context
πΈ AUTHOR πΈ
Florian Ragwitz <rafl@debian.org> β shoutout to the author, we love to see it π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2008 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. fr fr, go wild π¦
and that's the whole page bestie, you ate π
mwah π β this was User Contributed Perl Documentation, brought to you from the perl v5.34.0 era, dated 2022-06-15. same energy, same facts, stay iconic β¨
π¦ where this page comes from
- debian bookworm: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms