Class: FoxTail::Config
- Inherits:
-
Object
- Object
- FoxTail::Config
- Defined in:
- lib/fox_tail/config.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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
.current ⇒ Object
24 25 26 |
# File 'lib/fox_tail/config.rb', line 24 def current @current ||= default end |
.defaults ⇒ Object
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 |