lib/nanoc3/base/plugin_registry.rb in nanoc3-3.1.9 vs lib/nanoc3/base/plugin_registry.rb in nanoc3-3.2.0a1

- old
+ new

@@ -13,11 +13,11 @@ module PluginMethods # Sets the identifiers for this plugin. # # @param [Array<Symbol>] identifier A list of identifiers to assign to - # this plugin. + # this plugin. # # @return [void] def identifiers(*identifiers) register(self, *identifiers) end @@ -32,14 +32,14 @@ end # 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. + # string containing the class name to register. # # @param [Array<Symbol>] identifiers A list of identifiers to assign to - # this plugin. + # this plugin. # # @return [void] def register(class_or_name, *identifiers) # Find plugin class klass = self @@ -77,19 +77,19 @@ end # Registers the given class as a plugin. # # @param [Class] superclass The superclass of the plugin. For example: - # {Nanoc3::Filter}, {Nanoc3::Extra::VCS}. + # {Nanoc3::Filter}, {Nanoc3::Extra::VCS}. # # @param [Class, String] class_or_name The class to register. This can be - # a string, in which case it will be automatically converted to a proper - # class at lookup. For example: `Nanoc3::Filters::ERB`, - # `"Nanoc3::Filters::Haml"`. + # a string, in which case it will be automatically converted to a proper + # class at lookup. For example: `Nanoc3::Filters::ERB`, + # `"Nanoc3::Filters::Haml"`. # # @param [Symbol] identifiers One or more symbols identifying the class. - # For example: `:haml`, :`erb`. + # For example: `:haml`, :`erb`. # # @return [void] def register(superclass, class_or_name, *identifiers) @map[superclass] ||= {} @@ -157,9 +157,9 @@ find(self, name) end end - # @deprecated Use {Nanoc3::PluginRegistry.instance} instead + # @deprecated Use {Nanoc3::PluginRegistry.instace} instead Plugin = PluginRegistry.instance end