Class: StimulusPlumbers::Configuration
- Inherits:
-
Object
- Object
- StimulusPlumbers::Configuration
- Defined in:
- lib/stimulus_plumbers/configuration.rb
Constant Summary collapse
- DEFAULT_LOG_FORMATTER =
->() { "[StimulusPlumbers] #{}" }
Instance Method Summary collapse
Instance Method Details
#log_formatter ⇒ Object
14 15 16 |
# File 'lib/stimulus_plumbers/configuration.rb', line 14 def log_formatter @log_formatter ||= DEFAULT_LOG_FORMATTER end |
#log_formatter=(callable) ⇒ Object
18 19 20 21 22 |
# File 'lib/stimulus_plumbers/configuration.rb', line 18 def log_formatter=(callable) raise ArgumentError, "log_formatter must respond to #call" unless callable.respond_to?(:call) @log_formatter = callable end |
#theme ⇒ Object
10 11 12 |
# File 'lib/stimulus_plumbers/configuration.rb', line 10 def theme @theme ||= Themes::Configuration.new end |