module Muzak::Plugin

The namespace for muzak plugins.

Constants

PLUGIN_CLASSES

All classes (plugins) under the {Player} namespace. @see Plugin::StubPlugin.plugin_name @api private

PLUGIN_MAP

An association of human-friendly plugin names to plugin classes. @api private

PLUGIN_NAMES

All human-friendly player plugin names. @api private

Public Class Methods

load_plugins!() click to toggle source

Instantiates all configured plugins and returns them. @return [Array<StubPlugin>] the instantiated plugins

# File lib/muzak/plugin.rb, line 30
def self.load_plugins!
  pks = PLUGIN_CLASSES.select do |pk|
    Config.plugin?(pk.plugin_name) && pk.available?
  end

  pks.map(&:new)
end