Module: Laze

Extended by:
Laze
Included in:
Laze
Defined in:
lib/laze.rb,
lib/laze/item.rb,
lib/laze/asset.rb,
lib/laze/store.rb,
lib/laze/layout.rb,
lib/laze/target.rb,
lib/laze/plugins.rb,
lib/laze/section.rb,
lib/laze/secretary.rb,
lib/laze/javascript.rb,
lib/laze/stylesheet.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,
lib/laze/renderers/page_renderer.rb,
lib/laze/renderers/javascript_renderer.rb,
lib/laze/renderers/stylesheet_renderer.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Plugins, Renderers Classes: Asset, Item, Javascript, Layout, Secretary, Section, Store, Stylesheet, Target

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.versionObject



38
39
40
41
# File 'lib/laze.rb', line 38

def self.version
  yml = YAML.load(File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION.yml])))
  "#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}"
end

Instance Method Details

#debug(msg) ⇒ Object



22
23
24
# File 'lib/laze.rb', line 22

def debug(msg)
  LOGGER.debug(msg) if const_defined?('LOGGER')
end

#fatal(msg) ⇒ Object



34
35
36
# File 'lib/laze.rb', line 34

def fatal(msg)
  LOGGER.fatal(msg) if const_defined?('LOGGER')
end

#info(msg) ⇒ Object



30
31
32
# File 'lib/laze.rb', line 30

def info(msg)
  LOGGER.info(msg) if const_defined?('LOGGER')
end

#warn(msg) ⇒ Object



26
27
28
# File 'lib/laze.rb', line 26

def warn(msg)
  LOGGER.warn(msg) if const_defined?('LOGGER')
end