lib/nanoc/base/plugin_registry.rb
# Returns all plugins of the given class.
#
# @param [Class] klass The class of the plugin to return
#
# @return [Enumerable<Class>] A collection of class plugins
Returns all plugins of the given class.
Returns all plugins of the given class .
def find_all(klass)
      @identifiers_to_classes[klass] ||= {}
      res = {}
      @identifiers_to_classes[klass].each_pair { |k,v| res[k] = resolve(v, k) }
      res
    end
def find_all ( klass ) @identifiers_to_classes [ klass ] ||= { } res = { } @identifiers_to_classes [ klass ] . each_pair { | k , v | res [ k ] = resolve ( v , k ) } res end
Returns all plugins of the given class.
Returns all plugins of the given class .
A collection of class plugins
A collection of class plugins
Enumerable<Class>
klass
klass The class of the plugin to return
klass The class of the plugin to return