MakeMe...eneric(3pm)
โจ NAME โจ
Class::MakeMethods::Template::Generic โ Templates for common meta-method types. This is the MakeMe...eneric(3pm) page, with User Contributed Perl Documentation doing its little header cameo too ๐
โจ
๐ธ SYNOPSIS ๐ธ
package MyObject;
use Class::MakeMethods (
'Template::Hash:new' => [ 'new' ],
'Template::Hash:scalar' => [ 'foo' ]
'Template::Static:scalar' => [ 'bar' ]
);
package main;
my $obj = MyObject->new( foo => "Foozle", bar => "Bozzle" );
print $obj->foo();
$obj->bar("Bamboozle");
๐ DESCRIPTION ๐
This package provides a variety of abstract interfaces for constructors and accessor methods, which form a common foundation for meta-methods provided by the Hash, Scalar, Flyweight, Static, PackageVar, and ClassVar implementations.
Generally speaking, the Generic meta-methods define calling interfaces and behaviors which are bound to differently scoped data by each of those subclasses. iykyk ๐ฆ
๐ฆ new Constructor ๐ฆ
There are several types of hash-based object constructors to choose from, bestie.
Each of these methods creates and returns a reference to a new blessed instance. They differ in how their (optional) arguments are interpreted to set initial values, and in how they operate when called as class or instance methods. main character constructor energy ๐
๐ Interfaces
The following interfaces are supported.
-with_valuesโ Provides thewith_valuesbehavior.-with_initโ Provides thewith_initbehavior.-with_methodsโ Provides thewith_methodsbehavior.-new_and_initโ Provides thewith_initbehavior for*, and the general purposemethod_initbehavior as aninitmethod.-copy_with_valuesโ Provides thecopybehavior.
๐ฅ Behaviors
The following types of constructor methods are available.
with_valuesโ Creates and blesses a new instance.
If arguments are passed they are included in the instance, otherwise it will be empty.
Returns the new instance.
May be called as a class or instance method.
with_methodsโ Creates, blesses, and returns a new instance.
The arguments are treated as a hash of method-name/argument-value pairs, with each such pair causing a call "$self->name($value)".
with_initโ Creates and blesses a new instance, then calls a method named"init", passing along any arguments that were initially given.
Returns the new instance.
The init() method should be defined in the class declaring these methods.
May be called as a class or instance method.
and_then_initโ Creates a new instance using method-name/argument-value pairs, like"with_methods", but then calls a method named"init"before returning the new object. The"init"method does not receive any arguments.
The init() method should be defined in the class declaring these methods.
instance_with_methodsโ If called as a class method, creates, blesses, and returns a new instance. If called as an object method, operates on and returns the existing instance.
Accepts name-value pair arguments, or a reference to hash of such pairs, and calls the named method for each with the supplied value as a single argument. (See the Universal method_init behavior for more discussion of this pattern.)
copy_with valuesโ Produce a copy of an instance. Can not be called as a class method.
The copy is a shallow copy; any references will be shared by the instance upon which the method is called and the returned newborn.
If a list of key-value pairs is passed as arguments to the method, they are added to the copy, overwriting any values with the same key that may have been copied from the original.
copy_with_methodsโ Produce a copy of an instance. Can not be called as a class method.
The copy is a shallow copy; any references will be shared by the instance upon which the method is called and the returned newborn.
Accepts name-value pair arguments, or a reference to hash of such pairs, and calls the named method on the copy for each with the supplied value as a single argument before the copy is returned.
copy_instance_with_valuesโ If called as a class method, creates, blesses, and returns a new instance. If called as an object method, produces and returns a copy of an instance.
The copy is a shallow copy; any references will be shared by the instance upon which the method is called and the returned newborn.
If a list of key-value pairs is passed as arguments to the method, they are added to the copy, overwriting any values with the same key that may have been copied from the original.
copy_instance_with_methodsโ If called as a class method, creates, blesses, and returns a new instance. If called as an object method, produces and returns a copy of an instance.
The copy is a shallow copy; any references will be shared by the instance upon which the method is called and the returned newborn.
Accepts name-value pair arguments, or a reference to hash of such pairs, and calls the named method on the copy for each with the supplied value as a single argument before the copy is returned.
๐ Parameters
The following parameters are supported:
init_methodโ The name of the method to call after creating a new instance. Defaults to'init'.
๐ scalar Accessor ๐
A generic scalar-value accessor meta-method which serves as an abstraction for basic "get_set" methods and numerous related interfaces.
use Class::MakeMethods -MakerClass => "...",
scalar => [ 'foo', 'bar' ];
...
$self->foo( 'my new foo value' );
print $self->foo();
(Note that while you can use the scalar methods to store references to various data structures, there are other meta-methods defined below that may be more useful for managing references to arrays, hashes, and objects.) no cap, that note matters ๐ซถ
โจ Interfaces
The following calling interfaces are available.
get_set(default) โ Providesget_setmethod for*.
Example: Create method foo, which sets the value of 'foo' for this instance if an argument is passed in, and then returns the value whether or not it's been changed:
use Class::MakeMethods -MakerClass => "...",
scalar => [ 'foo' ];
get_protected_setโ Provides anget_setaccessor for*that croaks if a new value is passed in from a package that is not a subclass of the declaring one.get_private_setโ Provides anget_setaccessor for*that croaks if a new value is passed in from a package other than the declaring one.read_onlyโ Provides an accessor for*that does not modify its value. (Its initial value would have to be set by some other means.)eiffelโ Provides get behavior as*, and set behavior asset_*.
Example: Create methods bar which returns the value of 'bar' for this instance (takes no arguments), and set_bar, which sets the value of 'bar' (no return):
use Class::MakeMethods -MakerClass => "...",
scalar => [ --eiffel => 'bar' ];
javaโ Provides get behavior asget*, and set behavior asset*.
Example: Create methods getBaz which returns the value of 'Baz' for this instance (takes no arguments), and setBaz, which sets the value for this instance (no return):
use Class::MakeMethods -MakerClass => "...",
scalar => [ --java => 'Baz' ];
init_and_getโ Creates methods which cache their results in a hash key.
Provides the get_init behavior for *, and an delete behavior for clear_*. Specifies default value for init_method parameter of init_*.
with_clearโ Providesget_setbehavior for*, and aclear_*method.
๐ฆ Behaviors
The following types of accessor methods are available.
get_setโ If no argument is provided, returns the value of the current instance. The value defaults to undef.
If an argument is provided, it is stored as the value of the current instance (even if the argument is undef), and that value is returned.
Also available as get_protected_set and get_private_set, which are available for public read-only access, but have access control limitations.
getโ Returns the value from the current instance.setโ Sets the value for the current instance. If called with no arguments, the value is set to undef. Does not return a value.clearโ Sets value to undef.get_set_chainโ Likeget_set, but if called with an argument, returns the object it was called on. This allows a series of mutators to be called as follows:
package MyObject;
use Class::MakeMethods (
'Template::Hash:scalar --get_set_chain' => 'foo bar baz'
);
...
my $obj = MyObject->new->foo('Foozle');
$obj->bar("none")->baz("Brazil");
print $obj->foo, $obj->bar, $obj->baz;
get_set_prevโ Likeget_set, but if called with an argument, returns the previous value before it was changed to the new one.get_initโ If the value is currently undefined, calls theinit_method. Returns the value.
๐ Parameters
The following parameters are supported:
init_methodโ The name of a method to be called to initialize this meta-method.
Only used by the get_init behavior.
๐ string Accessor ๐
A generic scalar-value accessor meta-method which serves as an abstraction for basic "get_set" methods and numerous related interfaces.
use Class::MakeMethods -MakerClass => "...",
string => [ 'foo', 'bar' ];
...
$self->foo( 'my new foo value' );
print $self->foo();
This meta-method extends the scalar meta-method, and supports the same interfaces and parameters.
However, it generally treats values as strings, and can not be used to store references. string behavior only, bestie ๐
โญ Interfaces
In addition to those provided by "scalar", the following calling interfaces are available.
-get_concatโ Provides theget_concatbehavior for*, and aclear_*method.
Example:
use Class::MakeMethods
get_concat => { name => 'words', join => ", " };
$obj->words('foo');
$obj->words('bar');
$obj->words() eq 'foo, bar';
๐ฅ Behaviors
In addition to those provided by "scalar", the following types of accessor methods are available.
concatโ Concatenates the argument value with the existing value.get_concatโ Likeget_setexcept sets do not clear out the original value, but instead concatenate the new value to the existing one.
๐ Parameters
In addition to those provided by "scalar", the following parameters are supported.
๐ join
If the join parameter is defined, every time the get_concat behavior gets invoked, it glues its argument onto any existing value using the join string as the separator. The join field is applied between values, not prior to the first or after the last. Defaults to undefined. ๐ซถ
๐ธ string_index
string_index => [ qw / foo bar baz / ]
Creates string accessor methods, like string above, but also maintains a static hash index where each object is stored under the value of the field when the slot is set. โจ
This is a unique index, so only one object can have a given key. If an object has a slot set to a value that another object is already set to, the object currently set to that value has that slot set to undef, and the new object gets put into the hash under that value. No cap.
Objects with undefined values are not stored in the index.
Note that to free items from memory, you must clear these values! ๐ญ
Methods:
- The method
find_xis defined; if called with any arguments, it returns a list of the objects stored under those values in the hash. Called with no arguments, it returns a reference to the hash.
Profiles:
find_or_new
'string_index -find_or_new' => [ qw / foo bar baz / ]
Just like string_index, except the find_x method is defined to call the new method to create an object if there is no object already stored under any of the keys you give as arguments. ๐
๐ฅ number Accessor
A generic scalar-value accessor meta-method that serves as an abstraction for basic get_set methods and numerous related interfaces. ๐ง
use Class::MakeMethods -MakerClass => "...",
string => [ 'foo', 'bar' ];
...
$self->foo( 23 );
print $self->foo();
This meta-method extends the scalar meta-method, and supports the same interfaces and parameters.
However, it generally treats values as numbers, and can not be used to store strings or references. โ ๏ธ
Interfaces: In addition to those provided by scalar, the following calling interfaces are available.
-counterโ provides the numericget_setbehavior for*, and numeric*_incrand*_resetmethods.
Behaviors: In addition to those provided by scalar, the following types of accessor methods are available.
get_setโ theget_setbehavior is similar to the default scalar behavior except that empty values are treated as zero.incrementโ if no argument is provided, increments thehash_keyvalue by1. If an argument is provided, the value is incremented by that amount. Returns the increased value.clearโ sets the value to zero.
๐ฆ boolean Accessor
A generic scalar-value accessor meta-method that serves as an abstraction for basic get_set methods and numerous related interfaces. ๐
use Class::MakeMethods -MakerClass => "...",
string => [ 'foo', 'bar' ];
...
$self->foo( 1 );
print $self->foo();
$self->clear_foo;
This meta-method extends the scalar meta-method, and supports the same interfaces and parameters. However, it generally treats values as true-or-false flags, and can not be used to store strings, numbers, or references. ๐
Interfaces:
flag_set_clear(default) โ provides theget_setbehavior for*, andset_*andclear_*methods to set the value to true or false.
Behaviors: In addition to those provided by scalar, the following types of accessor methods are available.
get_setโ theget_setbehavior is similar to theget_setscalar behavior except that empty or false values are treated as zero, and true values are treated as zero.set_trueโ sets the value to one.set_falseโ sets the value to zero.
๐ bits Accessor
A generic accessor for bit-field values.
The difference between 'Template::Generic:bits' and 'Template::Generic:boolean' is that all flags created with this meta-method are stored in a single vector for space efficiency. โก
Interfaces: The following calling interfaces are available.
defaultโ providesget_setbehavior for*, aset_*method which sets the value to true, and aclear_*method which sets the value to false.
Also defines methods named bits, bit_fields, and bit_dump with the behaviors below. These methods are shared across all of the boolean meta-methods defined by a single class.
class_methodsโ.
Basic Behaviors: The following types of bit-level accessor methods are available.
get_setโ returns the value of the named flag. If called with an argument, it first sets the named flag to the truth-value of the argument.set_trueโ sets the value to true.set_falseโ sets the value to false.
Group Methods: The following types of methods manipulate the overall vector value. ๐
bitsโ returns the vector containing all of the bit fields (remember, however, that a vector containing all0bits is still true).bit_dumpโ returns a hash of the flag-name/flag-value pairs.bits_sizeโ returns the number of bits that can fit into the current vector.bits_complementโ returns the twos-complement of the vector.bit_pos_getโ takes a single argument and returns the value of the bit stored in that position.bit_pos_setโ takes two arguments and sets the bit stored in the position of the first argument to the value of the second argument.
Class Methods: The following types of class methods are available.
bit_namesโ returns a list of all the flags by name.
๐ array Accessor
Creates accessor methods for manipulating arrays of values. โจ
Interfaces: The following calling interfaces are available.
defaultโ providesget_setbehavior for*, andverb_*methods for the non-get behaviors below.minimalโ providesget_setbehavior for*, and*_verbmethods forclearbehavior.get_set_itemsโ provides theget_set_itemsfor*.x_verbโ providesget_pushbehavior for*, and*_verbmethods for the non-get behaviors below.get_set_refโ provides theget_set_reffor*.get_set_ref_helpโ provides theget_set_reffor*, andverb_*methods for the non-get behaviors below.
Behaviors: The following types of accessor methods are available.
get_set_itemsโ called with no arguments, returns a reference to the array stored in the slot.
Called with one simple scalar argument, it treats the argument as an index and returns the value stored under that index.
Called with more than one argument, it treats them as a series of index/value pairs and adds them to the array.
get_pushโ if arguments are passed, these values are pushed on to the list; if a single array ref is passed, its values are used as the arguments.
This method returns the list of values stored in the slot. In an array context it returns them as an array, and in a scalar context as a reference to the array.
get_set_refโ if arguments are passed, these values are placed on the list, replacing the current contents; if a single array ref is passed, its values are used as the arguments.
This method returns the list of values stored in the slot. In an array context it returns them as an array, and in a scalar context as a reference to the array.
get_setโ if arguments are passed, these values are placed on the list, replacing the current contents.
This method returns the list of values stored in the slot. In an array context it returns them as an array, and in a scalar context as a reference to the array.
pushโ append items to tail.popโ remove an item from the tail.shiftโ remove an item from the front.unshiftโ prepend items to front.spliceโ remove or replace items.clearโ remove all items.countโ returns the number of item in the list.
๐ hash Accessor
Creates accessor methods for manipulating hashes of key-value pairs. ๐
Interfaces: The following calling interfaces are available.
defaultโ providesget_setbehavior for*, and*_verbmethods for most of the other behaviors below.get_set_itemsโ provides theget_set_itemsfor*.
Behaviors: The following types of accessor methods are available.
get_set_itemsโ called with no arguments, returns a reference to the hash stored.
Called with one simple scalar argument, it treats the argument as a key and returns the value stored under that key.
Called with more than one argument, it treats them as a series of key/value pairs and adds them to the hash.
get_pushโ called with no arguments, returns the hash stored, as a hash in a list context or as a reference in a scalar context.
Called with one simple scalar argument, it treats the argument as a key and returns the value stored under that key.
Called with one array reference argument, the array elements are considered to be be keys of the hash. x returns the list of values stored under those keys (also known as a hash slice.)
Called with one hash reference argument, the keys and values of the hash are added to the hash.
Called with more than one argument, it treats them as a series of key/value pairs and adds them to the hash.
get_setโ likeget_push, except if called with more then one argument, empties the current hash items before adding those arguments to the hash.pushโ called with one hash reference argument, the keys and values of the hash are added to the hash.
Called with more than one argument, it treats them as a series of key/value pairs and adds them to the hash.
keysโ returns a list of the keys of the hash.valuesโ returns a list of the values in the hash.tallyโ takes a list of arguments and for each scalar in the list increments the value stored in the hash and returns a list of the current (after the increment) values.existsโ takes a single key, returns whether that key exists in the hash.deleteโ takes a list, deletes each key from the hash, and returns the corresponding values.clearโ resets hash to empty.
๐ tiedhash Accessor
A variant of Generic:hash which initializes the hash by tieing it to a caller-specified package. ๐ซถ
See the documentation on "Generic:hash" for interfaces and behaviors.
Parameters: The following parameters must be provided:
tieโ Required. The name of the class to tie to. Make sure you have"use"d the required class.argsโ Required. Any extra arguments for the tie, and you pass them as an array ref ๐
Like, fr fr, here's what it looks like in the wild:
use Class::MakeMethods
tie_hash => [ hits => { tie => q/Tie::RefHash/, args => [] } ];
use Class::MakeMethods
tie_hash => [ [qw(hits errors)] => { tie => q/Tie::RefHash/, args => [] } ];
use Class::MakeMethods
tie_hash => [ { name => hits, tie => q/Tie::RefHash/, args => [] } ];
Three vibes, same energy ๐
๐ฆ hash_of_arrays Accessor
Makes accessor methods for messing with hashes of array-refs. Bestie, it's a hash where every value is a little list, and these methods are your emotional support tools for getting at them ๐ธ
Interfaces
These are the calling interfaces you can choose from:
defaultโ gives yougetbehavior for*, plus*_verbmethods for all the other behaviors listed down there ๐
Behaviors
Here's the full menu of accessor methods:
getโ returns all the values for all the keys you hand it, in order. If you pass no keys at all, it returns all the values (in an unspecified key order โ so don't @ me about ordering ๐ญ).
The result comes back as an arrayref in scalar context. Important: this arrayref is not part of the data structure, so messing with it will not affect the contents directly (even if you only passed a single key as the argument). It's giving detached copy energy โจ
If any argument is an arrayref, then the members of that array are used as the keys. So the trivial empty-key case is available with an argument of [] โ iconic.
keysโ returns the keys of the hash. As an arrayref in scalar context. ๐๏ธexistsโ takes a list of keys and returns whether all of them exist in the hash (i.e., the "and" of whether the individual keys exist). All-or-nothing, main character behavior only ๐deleteโ takes a list, and deletes each key from the hash. Gone. Periodt ๐pushโ takes a key, and some values, and pushes those values onto the list denoted by the key. If the first argument is an arrayref, then each element of that arrayref is treated as a key, and the elements get pushed onto each appropriate list. Multipurpose slay ๐ซถpopโ takes a list of keys and pops each one. Returns the list of popped elements.undefshows up in the list for each key that has an empty list. ngl, empty lists are so real for that.unshiftโ likepush, only from the other end of the lists ๐shiftโ likepop, only from the other end of the lists ๐spliceโ takes a key, offset, length, and a values list, and splices the list named by the key. Anything from the offset argument (inclusive) may be omitted. See"splice" in perlfuncif you want the full lore ๐clearโ takes a list of keys and resets each named list to empty (but does not delete the keys). Clean slate, keys stay ๐คcountโ takes a list of keys and returns the sum of the number of elements for each named list. Math but make it cute ๐งฎindexโ takes a key and a list of indices, and returns a list of each item at the corresponding index in the list of the given key. Usesundeffor indices beyond range, no cap.removeโ takes a key and a list of indices, and removes each corresponding item from the named list. The indices are effectively looked up at the point of call โ so removing indices 3, 1 from list (a, b, c, d) will remove (d) and (b). Sneaky but correct ๐siftโ takes a key and a set of named arguments (which may be a list or a hash ref), and removes list members based on a grep-like approach. Options:filterโ the filter function used (as a coderef). It's passed two arguments: the value compared against, and the value in the list that's a potential grepping-out candidate. If it returns true, the value is removed. Default issub { $_[0] == $_[1] }๐งkeysโ the list keys to sift through (as an arrayref). Unknown keys are ignored. Default: all the known keys.valuesโ the values to sift out (as an arrayref). Default:[undef]
๐ object Accessor
Creates accessor methods for manipulating references to objects. We love a classy reference ๐
On top of creating a method to get and set the object reference, the meta-method can also define forwarded methods that automatically pass calls onto the object stored in that slot โ see the description of the 'delegate' parameter below. iykyk ๐ฅ
Interfaces
defaultโ providesget_setbehavior for*,clearbehavior for'delete_*', and forwarding methods for any values in the method's'delegate'or'soft_delegate'parameters.get_and_setโ provides a namedgetmethod, plusset_xandclear_xmethods.get_init_and_setโ provides a namedget_initmethod, plusset_xandclear_xmethods.
Behaviors
get_setโ if called with a reference to an object of the given class as the first argument, it stores it ๐ซณโจ
If called with any other arguments, it creates and stores a new object, passing the arguments to the new() method for the object.
If called without arguments, it returns the current value, which may be undefined if one has not been stored yet. Mood.
get_set_initโ if called with a reference to an object of the given class as the first argument, it stores it.
If the slot is not filled yet, it creates an object by calling the given new method of the given class. Any arguments passed to the get_set_init method are passed on to new.
In all cases, the object now stored is returned. Always returns the goods ๐
get_initโ if the instance is empty, it creates and stores a new one. Returns the instance.getโ returns the current value, which may be undefined if one has not been stored yet.setโ if called with a reference to an object of the given class as the first argument, it stores it.
If called with any other arguments, it creates and stores a new object, passing the arguments to the new() method.
If called without arguments, it creates and stores a new object, without any arguments to the new() method. Zero-arg new, no notes ๐
clearโ removes the reference value. Bye bestie ๐forwardingโ if a'delegate'or'soft_delegate'parameter is provided, methods with those names are created that are forwarded directly to the object in the slot, as described below.
Parameters
classโ Required. The type of object that will be stored. You gotta know the class, babe.new_methodโ the name of the method to call on the above class to create a new instance. Defaults to'new'.delegateโ the methods to forward to the object. Can contain a method name, a string of space-separated method names, or an array of method names. This type of method willcroakif it is called when the target object is not defined ๐ค (fair, honestly)soft_delegateโ the methods to forward to the object, if it is present. Can contain a method name, a string of space-separated method names, or an array of method names. This type of method will return nothing if it is called when the target object is not defined. Soft launch energy ๐
๐ instance Accessor
Creates methods to handle an instance of the calling class. Very "be your own best friend" of it ๐
PROFILES
defaultโ provides a namedgetmethod, andverb_xset,new, andclearmethods.-implicit_newโ provides a namedget_initmethod, andverb_xset, andclearmethods.-x_verbโ provides a namedgetmethod, andx_verbset,new, andclearmethods.
Behaviors
getโ returns the value of the instance parameter, which may be undefined if one has not been stored yet.get_initโ if the instance is empty, it creates and stores a new one. Returns the instance.setโ takes a single argument and sets the instance to that value. One argument only, king ๐newโ creates and stores a new instance. Fresh out the box โจclearโ sets the instance parameter toundef.
Parameters
instanceโ holds the instance reference. Defaults toundefnew_methodโ the name of the method to call when creating a new instance. Defaults to'new'.
๐ array_of_objects Accessor
Creates accessor methods for manipulating references to arrays of object references. It's a whole friend group in an array, tbh ๐ซถ
Operates like "Generic:array", but before adding any item to the array, it first checks to see if it's an instance of the designated class โ and if not, it passes it as an argument to that class's new method and stores the result instead. Gatekeeping, but make it helpful ๐
Forwarded methods return a list of the results returned by maping the method over each object in the array. Group chat broadcast behavior, love that.
See the documentation on "Generic:array" for interfaces and behaviors.
Parameters
classโ Required. The type of object that will be stored.delegateโ the methods to forward to the object. Can contain a method name, a string of space-separated method names, or an array of method names.new_methodโ the name of the method to call on the above class to create a new instance. Defaults to'new'.
โญ code Accessor
Creates accessor methods for manipulating references to subroutines. Function refs but make it fashion ๐
Interfaces
defaultโ provides thecall_setfunctionality.methodโ provides thecall_methodfunctionality.
Behaviors
call_setโ if called with one argument which is a CODE reference, it installs that code in the slot. Otherwise, it runs the code stored in the slot with whatever arguments (including none) were passed in. No args? Still runs. Iconic ๐โโ๏ธcall_methodโ just likecall_set, except the code is called like a method, with$selfas its first argument. Basically, you are creating a method which can be different for each object. Per-object personality, we stan ๐ญ
๐ง code_or_scalar Accessor
Creates accessor methods for manipulating either strings or references to subroutines. Both? Both. ๐
You can store any scalar value; code refs are executed when you retrieve the value, while other scalars are returned as-is.
Interfaces
defaultโ provides thecall_setfunctionality.methodโ provides thecall_methodfunctionality.eiffelโ provides the namedget_method, and a helperset_*method.
Behaviors
get_set_callโ if called with an argument, either a CODE reference or some other scalar, it installs that code in the slot. Otherwise, it runs the code stored in the slot with whatever arguments (including none) were passed in.get_set_methodโ just likecall_set, except the code is called like a method, with$selfas its first argument. Basically, you are creating a method which can be different for each object. Same energy, method vibes โจ
โจ SEE ALSO โจ
Okay so if you wanna go deeper (and bestie, you know you do ๐ ), there's more reading waiting for you:
Class::MakeMethodsโ this is the mothership ๐ธ, the place to go for the general tea about how this whole distribution works.Class::MakeMethods::Templateโ and this one's all about this little family of subclasses right here, so if the templating life is your vibe, this is your moment. ๐ฆ
That's genuinely it, no cap โ those two are the doors to walk through next.
And that's a wrap on the whole page, bestie! ๐ This little beauty comes to you courtesy of perl v5.36.0 and it was dated 2022-10-13 โ iconic behavior from the perl docs team, honestly ๐. Go forth and templatize responsibly ๐โจ
๐ฆ 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