Method: FIR::Config#write_config

Defined in:
lib/fir/util/config.rb

#write_config(hash) ⇒ Object



28
29
30
# File 'lib/fir/util/config.rb', line 28

def write_config(hash)
  File.open(CONFIG_PATH, 'w+') { |f| f << YAML.dump(hash) }
end