Method: AudioAddict::Commands::Base#needs
- Defined in:
- lib/audio_addict/commands/base.rb
#needs(*config_keys) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/audio_addict/commands/base.rb', line 8 def needs(*config_keys) missing = [] config_keys.each do |key| missing.push key unless Config.has_key? key end raise ConfigError, missing if missing.any? end |