Class::Usul::TraitFor::LoadingClasses - Load classes at runtime
This documents version v0.24.$Rev: 1 $
use Moo; with qw(Class::Usul::TraitFor::LoadingClasses);
A Moo::Role which load classes at runtime
__PACKAGE__->build_subcomponents( $base_class );
Class method that allows us to define components that inherit from the base class at runtime
$self->ensure_class_loaded( $some_class );
Require the requested class, throw an error if it doesn't load
$self->load_component( $child, @parents );
Ensures that each component is loaded then fixes @ISA for the child so that it inherits from the parents
@plugins = $self->setup_plugins( $class, $config_ref );
Load the given list of plugins and have the supplied class inherit from them. Returns an array ref of available plugins
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Larry Wall - For the Perl programming language
Peter Flanigan, <Support at RoxSoft.co.uk>
<Support at RoxSoft.co.uk>
Copyright (c) 2013 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install Class::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::Usul
CPAN shell
perl -MCPAN -e shell install Class::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.