class RubyLint::Presenter::JSON
{RubyLint::Presenter::JSON} formats a instance of {RubyLint::Report} into a JSON
formatted string.
Public Instance Methods
present(report)
click to toggle source
@param [RubyLint::Report] report The report to present. @return [String]
# File lib/ruby-lint/presenter/json.rb, line 14 def present(report) require 'json' return report.entries.sort.map(&:attributes).to_json end