Class: FoxTail::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/fox_tail/config.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



31
32
33
# File 'lib/fox_tail/config.rb', line 31

def initialize
  @config = self.class.defaults.clone
end

Class Method Details

.currentObject



24
25
26
# File 'lib/fox_tail/config.rb', line 24

def current
  @current ||= default
end

.defaultsObject



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fox_tail/config.rb', line 11

def defaults
  ActiveSupport::OrderedOptions.new.merge!({
    classname_merger: ClassnameMerger.new,
    stimulus_merger: StimulusMerger.new,
    use_stimulus: true,
    raise_on_asset_not_found: true,
    color_theme: {},
    icon_sets: {},
    default_icon_set: nil,
    default_icon_variant: :solid
  })
end