Sha256: 451e93d8ca7d18006103e2c61caee7cb81858af001f2103d1896a7df624432a4
Contents?: true
Size: 362 Bytes
Versions: 11
Compression:
Stored size: 362 Bytes
Contents
class Gamma::SyncDatabase def initialize(path) @sync_history_path = path @database = if File.exists?(@sync_history_path) JSON.parse(open(@sync_history_path).read) else {} end end def save open(@sync_history_path, "w") do |io| JSON.dump(@database, io) end end end
Version data entries
11 entries across 11 versions & 1 rubygems