lib/nanoc/base/plugin_registry.rb
# Registers the given class as a plugin with the given identifier.
#
# @param [Class, String] class_or_name The class to register, or a
#   string containing the class name to register.
#
# @param [Array<Symbol>] identifiers A list of identifiers to assign to
#   this plugin.
#
# @return [void]
Registers the given class as a plugin with the given identifier.
Registers the given class as a plugin with the given identifier .
def register(class_or_name, *identifiers)
        klass = self
        klass = klass.superclass while klass.superclass.respond_to?(:register)
        registry = Nanoc::PluginRegistry.instance
        registry.register(klass, class_or_name, *identifiers)
      end
def register ( class_or_name , * identifiers ) klass = self klass = klass . superclass while klass . superclass . respond_to? ( :register ) registry = Nanoc :: PluginRegistry . instance registry . register ( klass , class_or_name , * identifiers ) end
Registers the given class as a plugin with the given identifier.
Registers the given class as a plugin with the given identifier .
# Find plugin class # Register
None
void
class_or_name
identifiers
identifiers A list of identifiers to assign to this plugin.
identifiers A list of identifiers to assign to this plugin .