Sha256: 61e96d1aa26df10c7922eab29eac0cc4e8d3e02648b33ad933800b4553eb7414
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
require 'rubycritic/generators/json/simple' module RubyCritic module Generator class JsonReport def initialize(analysed_modules) @analysed_modules = analysed_modules end def generate_report FileUtils.mkdir_p(generator.file_directory) File.open(generator.file_pathname, 'w+') do |file| file.write(generator.render) end end private def generator Json::Simple.new(@analysed_modules) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-2.9.3 | lib/rubycritic/generators/json_report.rb |