package main;
- MyModule->load_components( qw/Foo Bar/ );
+ MyModule->load_components( qw/Foo Bar/ );
# Will load MyModule::Component::Foo and MyModule::Component::Bar
=head1 DESCRIPTION
This will inject base classes to your module using the L<Class::C3> method
resolution order.
-Please note: these are not plugins that can take precedence over methods
+Please note: these are not plugins that can take precedence over methods
declared in MyModule. If you want something like that, consider
L<MooseX::Object::Pluggable>.
=head2 load_components( @comps )
-Loads the given components into the current module. If a module begins with a
+Loads the given components into the current module. If a module begins with a
C<+> character, it is taken to be a fully qualified class name, otherwise
C<< $class->component_base_class >> is prepended to it.
=head2 load_optional_components
-As L<load_components>, but will silently ignore any components that cannot be
+As L<load_components>, but will silently ignore any components that cannot be
found.
=cut
Returns true if the specified class is installed or already loaded, false
otherwise.
-Note that the underlying mechanism (Class::Inspector->installed()) used by this
-sub will not, at the time of writing, correctly function when @INC includes
-coderefs. Since PAR relies upon coderefs in @INC, this function should be
-avoided in modules that are likely to be included within a PAR.
-
=cut
sub ensure_class_found {
Matt S. Trout and the L<DBIx::Class team|DBIx::Class/CONTRIBUTORS>
-Pulled out into seperate module by Ash Berlin C<< <ash@cpan.org> >>
+Pulled out into separate module by Ash Berlin C<< <ash@cpan.org> >>
Optimizations and overall bolt-tightening by Peter "ribasushi" Rabbitson
C<< <ribasushi@cpan.org> >>