Class: Kanal::Core::Plugins::Plugin
- Inherits:
-
Object
- Object
- Kanal::Core::Plugins::Plugin
- Defined in:
- lib/kanal/core/plugins/plugin.rb
Overview
Base class for plugins that can be registered in the core
Direct Known Subclasses
Instance Method Summary collapse
-
#name ⇒ Symbol
Name of the plugin, for it to be available for finding and getting.
-
#rake_tasks ⇒ Array<Rake::TaskLib>
If plugins does have rake tasks available for execution, require them here.
-
#setup(core) ⇒ void
This method is for the setting up, it will be executed when plugin is being added to the core.
Instance Method Details
#name ⇒ Symbol
Name of the plugin, for it to be available for finding and getting
16 17 18 |
# File 'lib/kanal/core/plugins/plugin.rb', line 16 def name raise NotImplementedError end |
#rake_tasks ⇒ Array<Rake::TaskLib>
If plugins does have rake tasks available for execution, require them here. They will be used
38 39 40 |
# File 'lib/kanal/core/plugins/plugin.rb', line 38 def rake_tasks [] end |
#setup(core) ⇒ void
This method returns an undefined value.
This method is for the setting up, it will be executed when plugin is being added to the core
28 29 30 |
# File 'lib/kanal/core/plugins/plugin.rb', line 28 def setup(core) raise NotImplementedError end |