lib/nanoc/base/plugin_registry.rb in nanoc-3.4.0 vs lib/nanoc/base/plugin_registry.rb in nanoc-3.4.1

- old
+ new

@@ -5,10 +5,12 @@ # The class responsible for keeping track of all loaded plugins, such as # filters ({Nanoc::Filter}), data sources ({Nanoc::DataSource}) and VCSes # ({Nanoc::Extra::VCS}). class PluginRegistry + extend Nanoc::Memoization + # A module that contains class methods for plugins. It provides functions # for setting identifiers, registering plugins and finding plugins. Plugin # classes should extend this module. module PluginMethods @@ -176,9 +178,10 @@ end else class_or_name end end + memoize :resolve end # @deprecated Use {Nanoc::PluginRegistry.instance} instead Plugin = PluginRegistry.instance