Sha256: fc8eca082c41360864a626f70b0188888d65474ff0682cd020a1fff473422521

Contents?: true

Size: 251 Bytes

Versions: 1

Compression:

Stored size: 251 Bytes

Contents

module Measured::Cache::JsonWriter
  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
measured-2.5.0 lib/measured/cache/json_writer.rb