Module: Mihari::Configurable
- Included in:
- Analyzers::Base, Emitters::Base
- Defined in:
- lib/mihari/configurable.rb
Instance Method Summary collapse
Instance Method Details
#config_keys ⇒ Object
17 18 19 |
# File 'lib/mihari/configurable.rb', line 17 def config_keys [] end |
#configuration_values ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/mihari/configurable.rb', line 9 def configuration_values return nil if config_keys.empty? config_keys.map do |key| { key: key.upcase, value: Mihari.config.send(key) } end end |
#configured? ⇒ Boolean
5 6 7 |
# File 'lib/mihari/configurable.rb', line 5 def configured? config_keys.all? { |key| Mihari.config.send(key) } end |