Sha256: 693c5ee2ac6ed910e22864729b6e39b2c5343692abec805ce23b74c0ba3154c3
Contents?: true
Size: 431 Bytes
Versions: 5
Compression:
Stored size: 431 Bytes
Contents
module VimGolf class Config class << self def path "#{ENV['HOME']}/.vimgolf" end def put_path path + "/put" end def save(conf) File.open(path + '/config.json', 'w') do |f| f.puts JSON.generate(conf) end end def load File.open(path + '/config.json', 'r') do |f| JSON.parse(f.read) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
vimgolf-0.2.0 | lib/vimgolf/config.rb |
vimgolf-0.1.3 | lib/vimgolf/config.rb |
vimgolf-0.1.2 | lib/vimgolf/config.rb |
vimgolf-0.1.1 | lib/vimgolf/config.rb |
vimgolf-0.1.0 | lib/vimgolf/config.rb |