Class: Muzak::Plugin::StubPlugin Abstract
- Inherits:
-
Object
- Object
- Muzak::Plugin::StubPlugin
- Includes:
- Utils
- Defined in:
- lib/muzak/plugin/stub_plugin.rb
Overview
This class is abstract.
Subclass and define any of Config::PLUGIN_EVENTS as methods to implement plugins.
A no-op plugin that all real plugins inherit from.
Class Method Summary collapse
-
.available? ⇒ true
Whether or not this plugin is available.
-
.plugin_name ⇒ String
The plugin's human friendly name.
Instance Method Summary collapse
-
#initialize ⇒ StubPlugin
constructor
A new instance of StubPlugin.
Methods included from Utils
album_art?, #build_response, #danger, #debug, #debug?, #error, #error!, music?, #output, #pretty, #verbose, #verbose?, which?
Constructor Details
#initialize ⇒ StubPlugin
Returns a new instance of StubPlugin.
20 21 22 |
# File 'lib/muzak/plugin/stub_plugin.rb', line 20 def initialize debug "loading #{self.class}" end |
Class Method Details
.available? ⇒ true
Returns whether or not this plugin is available.
16 17 18 |
# File 'lib/muzak/plugin/stub_plugin.rb', line 16 def self.available? true end |
.plugin_name ⇒ String
The plugin's human friendly name.
11 12 13 |
# File 'lib/muzak/plugin/stub_plugin.rb', line 11 def self.plugin_name name.split("::").last.downcase end |