MakeMe...:Class(3pm)
π NAME π
Class::MakeMethods::Template::Class β associate information with a package. This page is MakeMe...:Class(3pm), from the User Contributed Perl Documentation corner of the internet, and yes bestie we are getting into it π
β¨
π SYNOPSIS π
okay so picture this in your editor, bestie:
package MyObject;
use Class::MakeMethods::Template::Class (
scalar => [ 'foo' ]
);
package main;
MyObject->foo('bar')
print MyObject->foo();
that's the setup: declare it in MyObject, then call it from main π«Ά
π¦ DESCRIPTION π¦
These meta-methods are literally your class-specific value hookup. They're similar to Static, except that each subclass has separate values β so every subclass gets its own little pocket of info instead of sharing one giant group chat. π
β¨ Class:scalar β¨
Creates methods to handle a scalar variable in the declaring package. For the full interface and behavior tea, see the documentation on Generic:scalar π«Ά
β¨ Class:array β¨
Creates methods to handle an array variable in the declaring package. For interfaces and behaviors, go read the docs on Generic:array β it's giving reference material π.
β¨ Class:hash β¨
Creates methods to handle a hash variable in the declaring package. Interfaces and behaviors live in the documentation on Generic:hash πΈ.
that's the page, bestie π«Ά signed off by perl v5.36.0, dated 2022-10-13, and brought to you by MakeMe...:Class(3pm). periodt π
π¦ where this page comes from
- ubuntu noble: libclass-makemethods-perl 1.01-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libclass-makemethods-perl 1.01-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libclass-makemethods-perl 1.01-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms