Fukurama::Class::Attributes::OOStandard::Decorator - Helper-class to decorate subroutines


Fukurama-Class documentation  | view source Contained in the Fukurama-Class distribution.

Index


NAME

Top

Fukurama::Class::Attributes::OOStandard::Decorator - Helper-class to decorate subroutines

VERSION

Top

Version 0.02 (beta)

SYNOPSIS

Top

 package MyClass;
 use Fukurama::Class::Attributes::OOStandard::Decorator();
 my $helper = 'Fukurama::Class::Attributes::OOStandard::DefinitionCheck';

 Fukurama::Class::Attributes::OOStandard::Decorator->decorate('CGI::param', \&CGI::param, $helper);

DESCRIPTION

Top

A Helper class for Fukurama::Class::Attributes::OOStandard::DefinitionCheck to decorate subroutines with a subroutine to check parameters and return values and remove the decoration.

EXPORT

Top

-

METHODS

Top

decorate( method_identifier:STRING, actual_code_reference:\CODE, definition_checker:CLASS) return:VOID

Decorates the given method with some parameter and return value checks.

remove_decoration( method_identifier:STRING, actual_code_reference:\CODE ) return:VOID

Remove existing decorations for parameter and return value checks.

AUTHOR, BUGS, SUPPORT, ACKNOWLEDGEMENTS, COPYRIGHT & LICENSE

Top

see perldoc of Fukurama::Class


Fukurama-Class documentation  | view source Contained in the Fukurama-Class distribution.