Sha256: dde6b8f13f9156531bd7c02f754aa43ae04b170a747f0df21559432f3f62ebf8
Contents?: true
Size: 568 Bytes
Versions: 4
Compression:
Stored size: 568 Bytes
Contents
require 'how_is/report/base_report' class HowIs ## # A JSON report. class JsonReport < BaseReport # A JSON report is simply a JSON dump of the corresponding # HowIs::Analysis instance. ## # The format of the report. # # @return [Symbol] The name of the format. def format :json end ## # Generates a report. def export to_json end ## # Generates a report and writes it to a file. def export_file(file) File.open(file, 'w') do |f| f.write export end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
how_is-18.0.3 | lib/how_is/report/json.rb |
how_is-18.0.2 | lib/how_is/report/json.rb |
how_is-18.0.1 | lib/how_is/report/json.rb |
how_is-18.0.0 | lib/how_is/report/json.rb |