Class: Polytrix::Reporters::JSONReporter
- Inherits:
-
HashReporter
- Object
- HashReporter
- Polytrix::Reporters::JSONReporter
- Defined in:
- lib/polytrix/reporters/json_reporter.rb
Instance Method Summary collapse
Methods inherited from HashReporter
#colors?, #initialize, #print_table
Constructor Details
This class inherits a constructor from Polytrix::Reporters::HashReporter
Instance Method Details
#convert(data) ⇒ Object
7 8 9 |
# File 'lib/polytrix/reporters/json_reporter.rb', line 7 def convert(data) JSON.pretty_generate data end |