Class: Codewars::Config
- Inherits:
-
Thor
- Object
- Thor
- Codewars::Config
- Defined in:
- lib/codewars/config.rb
Instance Method Summary collapse
Instance Method Details
#key(secret_key) ⇒ Object
4 5 6 7 |
# File 'lib/codewars/config.rb', line 4 def key(secret_key) Configuration.write_option_to_config('api_key', secret_key) say "You've successefully added the api-key to the configuration file" end |
#language(default_language) ⇒ Object
10 11 12 13 |
# File 'lib/codewars/config.rb', line 10 def language(default_language) Configuration.write_option_to_config('language', default_language) say "You've successefully added the default language to the configuration file" end |