Class: Stylo::Config
- Inherits:
-
Object
- Object
- Stylo::Config
- Defined in:
- lib/stylo/config.rb
Class Method Summary collapse
Class Method Details
.defaults ⇒ Object
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 |
.options ⇒ Object
4 5 6 |
# File 'lib/stylo/config.rb', line 4 def @options ||= defaults.clone end |
.pipeline ⇒ Object
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_default ⇒ Object
26 27 28 |
# File 'lib/stylo/config.rb', line 26 def reset_to_default @options = defaults.clone end |