MooseX...difier(3pm)

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

πŸ’– NAME πŸ’–

okay bestie, welcome to MooseX::Declare::Syntax::Keyword::MethodModifier β€” she handles method modifier declarations, and she does it flawlessly ✨


🌸 VERSION 🌸

this is version 0.43 β€” the moment, the icon, the legend πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically? this module lets you implement method modification handlers. we're talking the big ones, the ones you already know and love: around and before πŸŽ€

that's the whole vibe. it's giving "plumbing that makes the pretty syntax work," and honestly? iconic πŸ‘‘


✨ ATTRIBUTES ✨

πŸ’œ modifier_type

a required string, no cap. and it has to be one of these five, pick your fighter:

  • around
  • after
  • before
  • override
  • augment
fr fr, it's required β€” don't ghost this one or she'll be sad 😭

πŸ“ METHODS πŸ“

register_method_declaration

Object->register_method_declaration (Object $metaclass, Str $name, Object $method)

so what this does is it adds the method modifier to the $metaclass β€” and it does that via Moose::Utils' add_method_modifier 🫢 and here's the lil detail: whatever that call returns? yeah, that gets returned right back out of this method too. so the return value flows through, main character energy all the way down πŸ’«


🌈 CONSUMES 🌈

  • MooseX::Declare::Syntax::MethodDeclaration

πŸ‘‘ SEE ALSO πŸ‘‘

  • MooseX::Declare
  • MooseX::Declare::Syntax::MooseSetup
  • MooseX::Declare::Syntax::MethodDeclaration
  • MooseX::Method::Signatures

🌟 AUTHOR 🌟

Florian Ragwitz <rafl@debian.org> πŸ’–


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, bestie!! this was documented for perl v5.34.0, dated 2022-06-15 β€” go forth and modify those methods πŸ’…βœ¨

πŸ“¦ where this page comes from