Template::Colour::Class - class metaprogramming module for Template::Colour
An example showing how Template::Colour::RGB uses Template::Colour::Class:
Template::Colour::Class
package Template::Colour::RGB; use Template::Colour::Class version => 2.09, debug => 0, base => 'Template::Colour', constants => 'ARRAY HASH SCHEME :RGB', utils => 'is_object', as_text => 'HTML', is_true => 1, throws => 'Colour.RGB';
This module is a simple subclass of Badger::Class which other Template::Colour modules use to add a bit of class metaprogramming magic.
It can be used in exactly the same way as Badger::Class to help with the definition of various class items. For example, the Template::Colour::RGB modules uses it like this:
The only difference between Template::Colour::Class and Badger::Class is that the constants are loaded from Template::Colour::Constants. This is a subclass of Badger::Constants which adds constant definitions used by the colour modules.
constants
Andy Wardley <abw@cpan.org>, http://wardley.org
Copyright (C) 2006-2012 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Badger::Class
To install Template::Plugin::Colour, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::Colour
CPAN shell
perl -MCPAN -e shell install Template::Plugin::Colour
For more information on module installation, please visit the detailed CPAN module installation guide.