module Measured::Cache::JsonWriter

Public Instance Methods

write(table) click to toggle source
# File lib/measured/cache/json_writer.rb, line 3
def write(table)
  File.open(@path, "w") do |f|
    f.write("// Do not modify this file directly. Regenerate it with 'rake cache:write'.\n")
    f.write(JSON.pretty_generate(encode(table)))
  end
end