Class: Cucumber::Formatter::JsonPretty
- Defined in:
- lib/cucumber/formatter/json_pretty.rb
Overview
The formatter used for --format json_pretty
Instance Method Summary collapse
Methods inherited from Json
#after_background, #after_feature_element, #after_features, #after_step, #after_table_row, #before_background, #before_examples, #before_feature, #before_feature_element, #before_features, #before_outline_table, #before_step, #before_step_result, #before_steps, #before_table_row, #before_tags, #embed, #examples_name, #initialize, #py_string, #scenario_name, #step_name, #table_cell_value
Methods included from Io
#ensure_dir, #ensure_file, #ensure_io
Constructor Details
This class inherits a constructor from Cucumber::Formatter::Json
Instance Method Details
#json_string ⇒ Object
8 9 10 |
# File 'lib/cucumber/formatter/json_pretty.rb', line 8 def json_string JSON.pretty_generate @json end |