|
NAMEClass::Field - Class Field Accessor GeneratorVERSIONThis document describes Class::Field version 0.24.SYNOPSISpackage Thing; use Class::Field qw'field const'; field 'this'; field 'list' => []; field 'map' => {}; field 'that', -init => '$self->setup_that'; field 'circular_ref' => -weaken; const 'answer' => 42; DESCRIPTIONClass::Field exports two subroutines, "field" and "const". These functions are used to declare fields and constants in your class.Class::Field generates custom code for each accessor that is optimized for speed. FUNCTIONS
NOTEThis code was taken directly out the Spiffy module for those people who just want this functionality without using the rest of Spiffy.AUTHORIngy döt Net <ingy@cpan.org>COPYRIGHT AND LICENSECopyright 2006-2019. Ingy döt Net.This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html>
Visit the GSP FreeBSD Man Page Interface. |