MakeMe...sorFast(3pm)
π NAME π
okay bestie, this is the MakeMe...sorFast(3pm) page from User Contributed Perl Documentation π
Class::MakeMethods::Emulator::AccessorFast β Emulate Class::Accessor::Fast β¨
β¨ SYNOPSIS β¨
fr fr, here's the whole vibe in code:
package Foo;
use base qw(Class::MakeMethods::Emulator::AccessorFast);
Foo->mk_accessors(qw(this that whatever));
# Meanwhile, in a nearby piece of code!
# Emulator::AccessorFast provides new().
my $foo = Foo->new;
my $whatever = $foo->whatever; # gets $foo->{whatever}
$foo->this('likmi'); # sets $foo->{this} = 'likmi'
So yeah: Emulator::AccessorFast provides new(). Then $foo->whatever gets $foo->{whatever}, and $foo->this('likmi') sets $foo->{this} = 'likmi' β no cap π
πΈ DESCRIPTION πΈ
This module emulates the functionality of Class::Accessor::Fast, using Class::MakeMethods to generate similar methods. iconic behavior honestly π
You may use it directly, as shown in the SYNOPSIS above, π
Furthermore, you may call use Class::MakeMethods::Emulator::AccessorFast '-take_namespace'; to alias the Class::Accessor::Fast namespace to this package, and subsequent calls to the original package will be transparently handled by this emulator. To remove the emulation aliasing, call use Class::MakeMethods::Emulator::AccessorFast '-release_namespace'. π¦
β οΈ Caution: This affects all subsequent uses of Class::Accessor::Fast in your program, including those in other modules, and might cause unexpected effects. not me warning you bestie π
π¦ SEE ALSO π¦
- See
Class::MakeMethodsfor general information about this distribution. π - See
Class::MakeMethods::Emulatorfor more about this family of subclasses. π§ - See
Class::Accessor::Fastfor documentation of the original module. π
mwah π β this MakeMe...sorFast(3pm) page is from perl v5.36.0, dated 2022-10-13. 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