MakeMe...:Evaled(3pm)
π NAME π
okay bestie, welcome to the MakeMe...:Evaled(3pm) manual β User Contributed Perl Documentation, no less π. Today's main character is Class::MakeMethods::Evaled β Make methods with simple string evals. that's the whole name, periodt.
β¨ SYNOPSIS β¨
okay so here's the vibe check β this is literally how you summon it:
package MyObject;
use Class::MakeMethods::Evaled::Hash (
new => 'new',
scalar => [ 'foo', 'bar' ],
array => 'my_list',
hash => 'my_index',
);
πΈ DESCRIPTION πΈ
This doc is your tour of all the various subclasses of Class::MakeMethods that live under the Evaled::* namespace, plus the method types each one hands you π«Ά.
The Evaled subclasses generate methods using a simple string templating mechanism and basic string evals. yes, it's giving old-school string magic, and honestly? iconic.
π Calling Conventions π
When you use this package, the method names you provide as arguments cause subroutines to be generated and installed in your module. lowkey that's the whole trigger, bestie π
.
For the full tea, see "Calling Conventions" in Class::MakeMethods::Standard β it's got more information.
π Declaration Syntax π
To declare methods, pass in pairs of a method-type name followed by one or more method names. pair them up, bestie β method type first, then the name(s), no cap π.
Valid method-type names for this package are listed in "METHOD GENERATOR TYPES". go check that list before you start guessing, okay?
See "Declaration Syntax" in Class::MakeMethods::Standard and "Parameter Syntax" in Class::MakeMethods::Standard for more information.
π¦ About Evaled Methods π¦
(the original page literally has this heading and then moves right along β no body text here, bestie π«Ά)
π 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! it's from perl v5.36.0, dated 2022-10-13, and it's the MakeMe...:Evaled(3pm) manual β mwah, slay, bye bestie! π
π¦ 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