Mason:...ginRole(3pm)

πŸ“¦
version 2.24 Β· 2 versions
  • 2.24 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 2.24 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 🫢


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