Module: Laze::Plugins

Defined in:
lib/laze/plugins.rb,
lib/laze/plugins/robots.rb,
lib/laze/plugins/css_imports.rb,
lib/laze/plugins/image_check.rb,
lib/laze/plugins/js_requires.rb,
lib/laze/plugins/cache_buster.rb,
lib/laze/plugins/image_optimizer.rb

Overview

:nodoc:

Defined Under Namespace

Modules: CacheBuster, CssImports, ImageCheck, ImageOptimizer, JsRequires, Robots

Class Method Summary collapse

Class Method Details

.each(for_kind = nil) ⇒ Object

Loop over all available plugins, yielding each.



46
47
48
49
50
51
# File 'lib/laze/plugins.rb', line 46

def self.each(for_kind = nil) # :yields: module
  constants.each do |c|
    const = Laze::Plugins.const_get(c)
    yield const if const.is_a?(Module) && (for_kind.nil? || const.applies_to?(for_kind))
  end
end