Class: RubyLint::Presenter::JSON
- Defined in:
- lib/ruby-lint/presenter/json.rb
Overview
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#present(report) ⇒ String
14 15 16 17 18 |
# File 'lib/ruby-lint/presenter/json.rb', line 14 def present(report) require 'json' return report.entries.sort.map(&:attributes).to_json end |