Class: Stylo::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/stylo/config.rb

Class Method Summary collapse

Class Method Details

.defaultsObject



8
9
10
11
12
13
14
15
16
# File 'lib/stylo/config.rb', line 8

def defaults
  {
    :css_combining_enabled => true,
    :js_combining_enabled => true,
    :js_minifying_enabled => true,
    :css_minifying_enabled => true,
    :css_minifying_exclusions => []
  }
end

.optionsObject



4
5
6
# File 'lib/stylo/config.rb', line 4

def options
  @options ||= defaults.clone
end

.pipelineObject



18
19
20
21
22
23
24
# File 'lib/stylo/config.rb', line 18

def pipeline
  [Stylo::PipelineSteps::Stylesheet.new,
    Stylo::PipelineSteps::StylesheetMinifying.new,
    Stylo::PipelineSteps::Javascript.new,
    Stylo::PipelineSteps::JavascriptMinifying.new,
    Stylo::PipelineSteps::Caching.new]
end

.reset_to_defaultObject



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

def reset_to_default
  @options = defaults.clone
end