Sha256: 8bb6bd6d78affe7d8d77e10952fff6919275aba081d6ce4c96307afe0bebe9bf

Contents?: true

Size: 375 Bytes

Versions: 9

Compression:

Stored size: 375 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
        print generator.render
      end

      private

      def generator
        Json::Simple.new(@analysed_modules)
      end
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubycritic-2.6.0 lib/rubycritic/generators/json_report.rb
rubycritic-2.5.0 lib/rubycritic/generators/json_report.rb
rubycritic-2.4.1 lib/rubycritic/generators/json_report.rb
rubycritic-2.4.0 lib/rubycritic/generators/json_report.rb
rubycritic-2.3.0 lib/rubycritic/generators/json_report.rb
rubycritic-2.2.0 lib/rubycritic/generators/json_report.rb
rubycritic-2.1.0 lib/rubycritic/generators/json_report.rb
rubycritic-2.0.0 lib/rubycritic/generators/json_report.rb
rubycritic-1.4.0 lib/rubycritic/generators/json_report.rb