Module:...ll::Base(3)

πŸ’– Module::Install::Base(3) β€” the glow-up base class πŸ’–

okay bestie, so this is the user contributed Perl documentation for Module::Install::Base β€” a.k.a. the nepo-baby base class that every Module::Install extension inherits from, and honestly? it's giving quiet luxury. lowkey the whole extension ecosystem runs on this thing. πŸŽ€


✨ NAME ✨

Module::Install::Base β€” the base class for Module::Install extensions, periodt. πŸ’…


🌸 SYNOPSIS 🌸

so when you're writing a Module::Install extension, you start with this vibe check:

use Module::Install::Base ();
@ISA = qw(Module::Install::Base);

literally that's it. iconic, no notes. ✨


πŸ’œ DESCRIPTION πŸ’œ

this module hands out the essential methods that all Module::Install extensions need β€” most importantly the shared constructor "new" and the method dispatcher "AUTOLOAD". it's the main character of the inheritance chain, fr fr. πŸ‘‘


πŸ¦‹ METHODS πŸ¦‹

  • new(%args) β€” the constructor! it takes %args and you need to preserve at least _top. like, do not lose _top, bestie, it's sacred. πŸ™
  • AUTOLOAD β€” the main dispatcher. it copies extensions if they're missing. iykyk. πŸ”₯
  • _top() β€” returns the top-level Module::Install object. your mom, basically. πŸ‘‘
  • admin() β€” returns the "_top" object's associated Module::Install::Admin object on the first run (i.e. when there was no inc/ when the program started). on subsequent (user-side) runs? it returns a fake admin object whose "AUTOLOAD" method is empty and does absolutely nothing at all. fake it till you make it energy, honestly. πŸ™ˆ
  • is_admin() β€” tells you whether this is the first run of the installer (the author's side). that means: there was no inc/ at program start. True if that's the case, False otherwise. simple as that. βœ…

🌈 SEE ALSO 🌈

Module::Install β€” go read it, bestie, it's the whole ecosystem. 🫢


πŸŽ€ AUTHORS πŸŽ€

Audrey Tang <autrijus@autrijus.org> β€” a real one. πŸ‘‘


Copyright 2003, 2004 by Audrey Tang <autrijus@autrijus.org>. πŸ“

this program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πŸͺ

See <http://www.perl.com/perl/misc/Artistic.html> β€” the receipts, right there. πŸ’–


ngl bestie, take the licensing seriously. it's not a vibe, it's a legal vibe. 😭

okay that's the whole page, bestie β€” no cap, we got every single detail. this was perl v5.42.0, dated 2023-04-29, and it's the Module:...ll::Base(3) page, slay. go forth and inherit responsibly. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from