IM::Engine::HasPlugins - role for objects that have plugins
This should probably only be applied to IM::Engine objects. Beware!
Return the IM::Engine::Plugin objects that return true for the passed coderef.
Return the IM::Engine::Plugin objects that do the particular role. For convenience, the role specifier has IM::Engine::Plugin:: prepended to it, unless it is prefixed with +.
IM::Engine::Plugin::
+
For each plugin that does the role argument, invoke the callback argument. Returns nothing.
role
callback
For each plugin that does the role argument, call the method on it, passing the baton argument to it. The return value of method is used as the baton for the next plugin. The return value of this method is the final state of the baton.
method
baton
This is useful for letting each plugin get a chance at modifying some value or object.
For each plugin that does the role argument, call the method on it. The first return value of method that is defined will be returned from this method.
This is useful for (among other things) letting each plugin get a chance at short-circuiting some other calculation.
For each plugin that does the role argument, call the method on it. The return values of all method calls are collected into a list to be returned by this method.
This is useful for (among other things) letting each plugin contribute to constructor arguments.
To install IM::Engine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IM::Engine
CPAN shell
perl -MCPAN -e shell install IM::Engine
For more information on module installation, please visit the detailed CPAN module installation guide.