MooseX...terized(3pm)

πŸ“¦
version 0.43 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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::Declare
  • MooseX::Declare::Context

🌸 AUTHOR 🌸

Florian Ragwitz <rafl@debian.org> β€” shoutout to the author, we love to see it πŸ’–


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