MakeMe...:Class(3pm)

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

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