class Nib::Integrate::ConfigFile
reads and writes the config file
Constants
- DEFAULT_CONFIG
- PATH
Public Class Methods
read(path = PATH)
click to toggle source
# File lib/nib/integrate/config_file.rb, line 18 def read(path = PATH) YAML.load_file(path) end
write(config, path = PATH)
click to toggle source
# File lib/nib/integrate/config_file.rb, line 11 def write(config, path = PATH) # this will write the config file. File.open(path, 'w') do |f| f.write(config.to_yaml) end end