MakeMe...sorFast(3pm)

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

πŸ’– 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::MakeMethods for general information about this distribution. 🌈
  • See Class::MakeMethods::Emulator for more about this family of subclasses. 🧚
  • See Class::Accessor::Fast for 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