Class: Well::Config
Overview
Singleton class which holds configuration.
Instance Attribute Summary collapse
-
#element_separator ⇒ Object
Returns the value of attribute element_separator.
-
#modifier_separator ⇒ Object
Returns the value of attribute modifier_separator.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
Initalizes default values for component separators based on recommendations from the BEM spec.
Constructor Details
#initialize ⇒ Config
Initalizes default values for component separators based on recommendations from the BEM spec.
12 13 14 15 |
# File 'lib/well/config.rb', line 12 def initialize @element_separator = '__' @modifier_separator = '--' end |
Instance Attribute Details
#element_separator ⇒ Object
Returns the value of attribute element_separator.
8 9 10 |
# File 'lib/well/config.rb', line 8 def element_separator @element_separator end |
#modifier_separator ⇒ Object
Returns the value of attribute modifier_separator.
8 9 10 |
# File 'lib/well/config.rb', line 8 def modifier_separator @modifier_separator end |