MooseX...ndling(3pm)
π MooseX::Declare::Syntax::InnerSyntaxHandling π
okay bestie, so this is the manual page for MooseX::Declare::Syntax::InnerSyntaxHandling (from the User Contributed Perl Documentation, iykyk) and it's giving keywords inside blocks energy. let's get into it π«Ά
β¨ VERSION β¨
version 0.43 β that's the one, no cap π
πΈ DESCRIPTION πΈ
so basically, this role lets you set up keyword handlers that are only available inside blocks or other scoping environments. like, they don't exist out in the open, they only pop off when you're nested inside something. lowkey iconic scoping behaviour fr fr π¦
π METHODS π
π default_inner
ArrayRef[Object] Object->default_inner ()
returns an empty ArrayRef by default. that's it, that's the whole vibe.
if you wanna set up extra keywords on top of that? you're gonna have to around this method. no shortcuts, bestie β wrap it or it's not happening β¨
π setup_inner_for
Object->setup_inner_for(ClassName $class, %args)
sets up all the handlers in the inner class. all of them. every single one. it's a whole moment π
π₯ REQUIRED METHODS π₯
π§ get_identifier
Str get_identifier ()
you have to make this return the name of the identifier of the current handler. required means required β no get_identifier, no vibes. periodt π
π¦ MODIFIED METHODS π¦
π setup_for
Object->setup_for(ClassName $class, %args)
after the keyword gets set up inside itself, this will call setup_inner_for. so it's doing the outer thing, then handing off to the inner thing. main character energy honestly π
β SEE ALSO β
MooseX::DeclareMooseX::Declare::Syntax::NamespaceHandlingMooseX::Declare::Syntax::MooseSetup
go read those too bestie, they're all connected π«Ά
π AUTHOR π
Florian Ragwitz <rafl@debian.org> β we stan π
π 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.
and that's the whole page!! thanks for coming to my ted talk π
okay so final sign-off: this was perl v5.34.0, dated 2022-06-15, and it's the MooseX...ndling(3pm) page from the User Contributed Perl Documentation. slay, bye bestie πΈβ¨π
π¦ 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