Top Level Namespace

Defined Under Namespace

Modules: Kita, Menu Classes: Audio, Hiragana, Katakana, Question

Constant Summary collapse

CONF_DIR =

Set config directory and create it if it doesn’t exist

"#{ENV['HOME']}/.config/kita"
CONF_FILE =
"#{CONF_DIR}/config.yaml"
HIRAGANA =
%w[
      
      
      
      
      
      
      
      
      
      
      
      
    
      
   
  
].freeze
KATAKANA =
%w[
      
      
      
      
      
      
      
      
      
      
      
      
    
      
   
  
].freeze

Instance Method Summary collapse

Instance Method Details

#save_settingsObject



12
13
14
15
# File 'lib/kita/config.rb', line 12

def save_settings
  puts 'Saved settings'
  File.open(CONF_FILE, 'w') { |file| file.write(Settings.to_hash.to_yaml) }
end