NAME
Froody::Base - base class for Froody classes
DESCRIPTION
A base class for all Froody classes, provides useful methods.
METHODS
- new()
-
A constructor. Doesn't take any parameters. Throws an exception if some are passed.
- init
-
Called from new. Designed to be overridden. Remember to call your parent init!
- validate_class(@_, { ... })
-
A utility wrapper around Params::Validate that also makes sure that it's being called as a class method, eg.
sub class_method { my $class = shift; my %args = $class->validate_class(@_, { ... } ) ...
see Params::Validate for details on the function.
- validate_object(@_, { ... })
-
A utility wrapper around Params::Validate that also makes sure that it's being called as an object method, eg.
sub object_method { my $self = shift; my %args = $self->validate_class(@_, { ... } ) ...
see Params::Validate for details on the function.
- validate_either(@_, { ... })
-
A utility wrapper around Params::Validate that does nothing else, for methods that can be class or object methods.
sub class_method { my $class = shift; my %args = $class->validate_either(@_, { ... } ) ...
see Params::Validate for details on the function.
BUGS
None known.
Please report any bugs you find via the CPAN RT system. http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Froody
AUTHOR
Copyright Fotango 2005. All rights reserved.
Please see the main Froody documentation for details of who has worked on this project.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.