module Challah::Plugins

Plugins are used to extend the functionality of Challah.

Public Instance Methods

plugins() click to toggle source

Get the list of all plugins

# File lib/challah/plugins.rb, line 37
def plugins
  @plugins
end
register_plugin(name, &block) click to toggle source

Register a new plugin.

# File lib/challah/plugins.rb, line 30
def register_plugin(name, &block)
  plugin = Plugin.new
  plugin.instance_eval(&block)
  @plugins[name] = plugin
end