Fukurama::Class::Abstract - Pragma to provide abstract classes
Version 0.01 (beta)
package MyClass; use Fukurama::Class::Abstract;
This pragma-like module provides functions to check the usage of all class-methods. All calls from childs, which inherits from this class are ok, all other will croak at runtime. Use Fukurama::Class instead, to get all the features for OO.
You can disable the whole behavior of this class by setting
$Fukurama::Class::Abstract::DISABLE = 1;
All methods of your abstract class would be decorated with a caller-check method.
Set the given class as abstract.
Helper method for static perl (see Fukurama::Class > BUGS) This method decorates all non-special subroutines in the registered, abstract classes that all calls would be checked.
see perldoc of Fukurama::Class
To install Fukurama::Class, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fukurama::Class
CPAN shell
perl -MCPAN -e shell install Fukurama::Class
For more information on module installation, please visit the detailed CPAN module installation guide.