module Plugins::ComponentMixin
Intended to be mixed into any class utilizing the plugins functionality.
Public Class Methods
included(base)
click to toggle source
# File lib/plugins/component_mixin.rb, line 5 def self.included(base) base.extend(ClassMethods) end
Public Instance Methods
plugin(*args, &block)
click to toggle source
Add a plugin.
# File lib/plugins/component_mixin.rb, line 41 def plugin(*args, &block) plugins.add(*args, &block) end
plugins()
click to toggle source
Reference to the Plugins
instance for the component.
# File lib/plugins/component_mixin.rb, line 35 def plugins @plugins ||= Plugins.new(self, &self.class.plugin_loader) end