Mason:...efault(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

πŸ’– NAME πŸ’–

Mason::PluginBundle::Default β€” the default plugins, bestie. The ones that just... show up. Every time. No invitation needed. ✨

(It's a Perl thing, from the User Contributed Perl Documentation, section 3pm, and the header literally spells it Mason:...efault(3pm) because apparently truncation is a lifestyle. 😭)


🌸 DESCRIPTION 🌸

Okay so listen. The plugins in this bundle are always added by default. Like, always always. It does not matter one bit whether you pass a plugins list to Mason->new β€” they're coming. They're already in the group chat. πŸ’…

But!! You can kick them out. Use the - prefix to remove individual plugins, or to remove the whole entire bundle. Iconic behaviour honestly. Here's the receipts:

# Will get just the default plugins
Mason->new(...);
Mason->new(plugins => [], ...);

# Will get the default plugins plus the 'Foo' plugin
Mason->new(plugins => ['Foo'], ...);

# Will get the default plugins except for 'DollarDot'
Mason->new(plugins => ['-DollarDot'], ...);

# Will get no plugins
Mason->new(plugins => ['-Default'], ...);

So like β€” pass [] and you still get the defaults (they said no but the defaults said yes πŸ™ˆ). Pass ['Foo'] and you get defaults plus Foo. Pass ['-DollarDot'] and it's defaults minus that one specific queen. Pass ['-Default'] and congrats, you have no plugins, it's giving minimalist. πŸ¦‹


πŸŽ€ INCLUDED PLUGINS πŸŽ€

The main characters in this bundle, the ones who never leave:

  • Defer
  • DollarDot

πŸ‘‘ SEE ALSO πŸ‘‘

  • Mason

✨ AUTHOR ✨

Jonathan Swartz <swartz@pobox.com> β€” the blueprint, the legend. 🫢


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 go off, remix it, share it, it's yours to play with. πŸ’–


And that's the whole page, bestie!! Sourced from perl v5.34.0, dated 2022-05-27, straight out of the User Contributed Perl Documentation. Slay, stay safe, and remember: the defaults are always gonna default. πŸ˜­πŸ’…πŸŒΈ

πŸ“¦ where this page comes from