class_accessor
Automated accessor generation
class_accessor
Descrizione
This module automagically generates accessors/mutators for your class.
Most of the time, writing accessors is an exercise in cutting and pasting. You usually wind up with a series of almost identical methods, one for each piece of data in your object. While some will be unique, doing value checks and special storage tricks, most will simply be exercises in repetition.
If you make your module a subclass of Class::Accessor and declare your accessor fields with mk_accessors() then you'll find yourself with a set of automatically generated accessors, which can even be customized!
Installa
Canale stable v0.51-2
Questa app e' curata in HaikuPorts. Installala da li', e' gia' disponibile in HaikuDepot.
pkgman install class_accessor
Attenzione: il file arriva dal server di HaikuPorts, ma installarlo a mano non è la strada consigliata. È «pkgman» a risolvere le dipendenze che un .hpkg non porta con sé: un pacchetto installato da solo potrebbe non partire. Usa il comando pkgman qui sopra, a meno che tu non sappia esattamente perché ti serve il file.