MakeMe...tandard(3pm)

πŸ“¦
version 1.01 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Okay bestie, you're reading the MakeMe...tandard(3pm) page, and yes, that's the manual name β€” it lives in User Contributed Perl Documentation land. The package doing the main-character thing here is:

Class::MakeMethods::Standard β€” Make common object accessors πŸ’…


✨ SYNOPSIS ✨

Here's the exact vibe, no edits:

package MyObject;
use Class::MakeMethods::Standard::Hash (
  new => 'new',
  scalar => [ 'foo', 'bar' ],
  array => 'my_list',
  hash => 'my_index',
);

🌸 DESCRIPTION 🌸

This document is the full tour of the various subclasses of Class::MakeMethods that live under the Standard::* namespace, plus the method types each one provides. The Standard subclasses hand you a parameterized set of method-generation implementations, and that's lowkey iconic. πŸŽ€

Subroutines are generated as closures bound to a hash containing the method name and (optionally) additional parameters. Periodt.


πŸ› οΈ USAGE AND SYNTAX πŸ› οΈ

When you use a subclass of this package, the method declarations you pass as arguments cause subroutines to be generated and installed in your module. You can also leave out the arguments to use and instead make methods at runtime by passing the declarations to a later call to make(). No cap.

You can include any number of declarations in each call to use or make(). If methods with the same name already exist, earlier calls to use or make() win over later ones β€” but within each call, later declarations superceed earlier ones. (Yep, superceed is literally the spelling in the source, bestie. We're keeping the vibe. πŸ’€)

You can install methods in a different package by passing -target_class => package as your first arguments to use or make. That's the move. 🫢

See "USAGE" in Class::MakeMethods for more details.


πŸ”₯ SEE ALSO πŸ”₯

  • See Class::MakeMethods for general information about this distribution.
  • For distribution, installation, support, copyright and license information, see Class::MakeMethods::Docs::ReadMe.

And that's the whole page, bestie. Cute little sign-off tea: perl v5.36.0, dated 2022-10-13, and the manual name is MakeMe...tandard(3pm). Slay. πŸ’–βœ¨

πŸ“¦ where this page comes from