Class: Well::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/well/config.rb

Overview

Singleton class which holds configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_separatorObject

Returns the value of attribute element_separator.



8
9
10
# File 'lib/well/config.rb', line 8

def element_separator
  @element_separator
end

#modifier_separatorObject

Returns the value of attribute modifier_separator.



8
9
10
# File 'lib/well/config.rb', line 8

def modifier_separator
  @modifier_separator
end