Class: CssCompressor::Configuration
- Inherits:
-
Object
- Object
- CssCompressor::Configuration
- Defined in:
- lib/cssminify2/cssmin_enhanced.rb
Overview
Configuration for compression options
Instance Attribute Summary collapse
-
#compress_whitespace ⇒ Object
Returns the value of attribute compress_whitespace.
-
#enable_source_maps ⇒ Object
Returns the value of attribute enable_source_maps.
-
#line_break_position ⇒ Object
Returns the value of attribute line_break_position.
-
#merge_selectors ⇒ Object
Returns the value of attribute merge_selectors.
-
#optimize_colors ⇒ Object
Returns the value of attribute optimize_colors.
-
#optimize_shorthands ⇒ Object
Returns the value of attribute optimize_shorthands.
-
#preserve_comments ⇒ Object
Returns the value of attribute preserve_comments.
-
#strict_mode ⇒ Object
Returns the value of attribute strict_mode.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/cssminify2/cssmin_enhanced.rb', line 20 def initialize @preserve_comments = false @optimize_colors = true @merge_selectors = true @optimize_shorthands = true @compress_whitespace = true @line_break_position = 5000 @enable_source_maps = false @strict_mode = false end |
Instance Attribute Details
#compress_whitespace ⇒ Object
Returns the value of attribute compress_whitespace.
16 17 18 |
# File 'lib/cssminify2/cssmin_enhanced.rb', line 16 def compress_whitespace @compress_whitespace end |
#enable_source_maps ⇒ Object
Returns the value of attribute enable_source_maps.
16 17 18 |
# File 'lib/cssminify2/cssmin_enhanced.rb', line 16 def enable_source_maps @enable_source_maps end |
#line_break_position ⇒ Object
Returns the value of attribute line_break_position.
16 17 18 |
# File 'lib/cssminify2/cssmin_enhanced.rb', line 16 def line_break_position @line_break_position end |
#merge_selectors ⇒ Object
Returns the value of attribute merge_selectors.
16 17 18 |
# File 'lib/cssminify2/cssmin_enhanced.rb', line 16 def merge_selectors @merge_selectors end |
#optimize_colors ⇒ Object
Returns the value of attribute optimize_colors.
16 17 18 |
# File 'lib/cssminify2/cssmin_enhanced.rb', line 16 def optimize_colors @optimize_colors end |
#optimize_shorthands ⇒ Object
Returns the value of attribute optimize_shorthands.
16 17 18 |
# File 'lib/cssminify2/cssmin_enhanced.rb', line 16 def optimize_shorthands @optimize_shorthands end |
#preserve_comments ⇒ Object
Returns the value of attribute preserve_comments.
16 17 18 |
# File 'lib/cssminify2/cssmin_enhanced.rb', line 16 def preserve_comments @preserve_comments end |
#strict_mode ⇒ Object
Returns the value of attribute strict_mode.
16 17 18 |
# File 'lib/cssminify2/cssmin_enhanced.rb', line 16 def strict_mode @strict_mode end |