Class: Chutney::JSONFormatter

Inherits:
Formatter show all
Defined in:
lib/chutney/formatter/json_formatter.rb

Overview

Plain old JSON formatter

Instance Attribute Summary

Attributes inherited from Formatter

#results

Instance Method Summary collapse

Methods inherited from Formatter

#files, #files_with_issues, #initialize

Constructor Details

This class inherits a constructor from Chutney::Formatter

Instance Method Details

#formatObject



6
7
8
# File 'lib/chutney/formatter/json_formatter.rb', line 6

def format
  puts @results.to_json
end