Mason:...ginRole(3pm)
π Mason::PluginRole β bestie edition π
okay so this is a page from the User Contributed Perl Documentation, and the thing itself is called Mason::PluginRole. it's a whole vibe, trust me. it's literally a lil helper for defining Mason plugin roles. that's the whole main character arc. β¨
πΈ NAME πΈ
Mason::PluginRole β a lil helper for defining Mason plugin roles π«Ά
β¨ SYNOPSIS β¨
ok so instead of writing use Moose::Role;, you just do this instead:
# instead of use Moose::Role;
use Mason::PluginRole;
that's it. that's the whole thing. slay. π
π¦ DESCRIPTION π¦
so Mason::PluginRole is a variant on Moose::Role β like, same energy, different outfit β and you use it inside Mason plugin roles. π
and bestie, using this module is equivalent to writing out these two lines yourself:
use Moose::Role;
use Method::Signatures::Simple;
so it's giving two-for-one. it's giving efficiency. it's giving iykyk. π
π SEE ALSO π
Masonβ go look at it, it's the whole point, no cap π
π AUTHOR π
Jonathan Swartz <swartz@pobox.com> β iconic, we stan π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2012 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so yes, it's free, do your thing, just keep the same terms as Perl 5 itself, periodt. β¨
and that's a wrap, bestie π this page came from perl v5.34.0 and was dated 2022-05-27, so drink some water, use your plugin roles responsibly, and remember: use Mason::PluginRole; instead of use Moose::Role;. mwah π
π
π¦ where this page comes from
- debian bookworm: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmason-perl 2.24-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmason-perl 2.24-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