Class: UtilityColors::Configuration
- Inherits:
-
Object
- Object
- UtilityColors::Configuration
- Defined in:
- lib/utility_colors/configuration.rb
Instance Attribute Summary collapse
-
#breakpoint_classes ⇒ Object
Returns the value of attribute breakpoint_classes.
-
#enable_environments ⇒ Object
Returns the value of attribute enable_environments.
-
#import_palettes_filepath ⇒ Object
Returns the value of attribute import_palettes_filepath.
-
#output_dated ⇒ Object
Returns the value of attribute output_dated.
-
#output_filename ⇒ Object
Returns the value of attribute output_filename.
-
#output_files ⇒ Object
Returns the value of attribute output_files.
-
#output_prefix ⇒ Object
Returns the value of attribute output_prefix.
-
#output_suffix ⇒ Object
Returns the value of attribute output_suffix.
-
#pseudo_breakpoint_classes ⇒ Object
Returns the value of attribute pseudo_breakpoint_classes.
-
#pseudo_classes ⇒ Object
Returns the value of attribute pseudo_classes.
-
#regular_classes ⇒ Object
Returns the value of attribute regular_classes.
Instance Method Summary collapse
-
#configure_utility_palettes ⇒ Object
Nested configuration method for UtilityPalettes.
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset! ⇒ Object
- #validate_settings ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/utility_colors/configuration.rb', line 10 def initialize # Enabled Environments @enable_environments = [:development] # Use Existing Utility Palettes Result @import_palettes_filepath = 'utility_palettes.scss' # Output @output_filename = 'utility_colors' @output_dated = false @output_files = ['scss'] @output_prefix = nil @output_suffix = nil # Build Other Class Types @regular_classes = true @breakpoint_classes = false @pseudo_classes = false @pseudo_breakpoint_classes = false # Configuration instance for UtilityPalettes # @utility_palettes_configuration = UtilityPalettes::Configuration.new end |
Instance Attribute Details
#breakpoint_classes ⇒ Object
Returns the value of attribute breakpoint_classes.
5 6 7 |
# File 'lib/utility_colors/configuration.rb', line 5 def breakpoint_classes @breakpoint_classes end |
#enable_environments ⇒ Object
Returns the value of attribute enable_environments.
5 6 7 |
# File 'lib/utility_colors/configuration.rb', line 5 def enable_environments @enable_environments end |
#import_palettes_filepath ⇒ Object
Returns the value of attribute import_palettes_filepath.
5 6 7 |
# File 'lib/utility_colors/configuration.rb', line 5 def import_palettes_filepath @import_palettes_filepath end |
#output_dated ⇒ Object
Returns the value of attribute output_dated.
5 6 7 |
# File 'lib/utility_colors/configuration.rb', line 5 def output_dated @output_dated end |
#output_filename ⇒ Object
Returns the value of attribute output_filename.
5 6 7 |
# File 'lib/utility_colors/configuration.rb', line 5 def output_filename @output_filename end |
#output_files ⇒ Object
Returns the value of attribute output_files.
5 6 7 |
# File 'lib/utility_colors/configuration.rb', line 5 def output_files @output_files end |
#output_prefix ⇒ Object
Returns the value of attribute output_prefix.
5 6 7 |
# File 'lib/utility_colors/configuration.rb', line 5 def output_prefix @output_prefix end |
#output_suffix ⇒ Object
Returns the value of attribute output_suffix.
5 6 7 |
# File 'lib/utility_colors/configuration.rb', line 5 def output_suffix @output_suffix end |
#pseudo_breakpoint_classes ⇒ Object
Returns the value of attribute pseudo_breakpoint_classes.
5 6 7 |
# File 'lib/utility_colors/configuration.rb', line 5 def pseudo_breakpoint_classes @pseudo_breakpoint_classes end |
#pseudo_classes ⇒ Object
Returns the value of attribute pseudo_classes.
5 6 7 |
# File 'lib/utility_colors/configuration.rb', line 5 def pseudo_classes @pseudo_classes end |
#regular_classes ⇒ Object
Returns the value of attribute regular_classes.
5 6 7 |
# File 'lib/utility_colors/configuration.rb', line 5 def regular_classes @regular_classes end |
Instance Method Details
#configure_utility_palettes ⇒ Object
Nested configuration method for UtilityPalettes
39 40 41 |
# File 'lib/utility_colors/configuration.rb', line 39 def configure_utility_palettes # yield(@utility_palettes_configuration) if block_given? end |
#reset! ⇒ Object
34 35 36 |
# File 'lib/utility_colors/configuration.rb', line 34 def reset! initialize end |
#validate_settings ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/utility_colors/configuration.rb', line 43 def validate_settings # Validate UtilityPalettes configuration # return false unless @utility_palettes_configuration.validate_settings # Add any additional validations specific to UtilityColors true end |