Class: Cucumber::Formatter::Gpretty
- Inherits:
-
GherkinFormatterAdapter
- Object
- GherkinFormatterAdapter
- Cucumber::Formatter::Gpretty
- Includes:
- Io
- Defined in:
- lib/cucumber/formatter/gpretty.rb
Overview
The formatter used for --format gpretty
Instance Method Summary (collapse)
- - (Object) after_feature(feature)
-
- (Gpretty) initialize(step_mother, io, options)
constructor
A new instance of Gpretty.
Methods included from Io
#ensure_dir, #ensure_file, #ensure_io
Methods inherited from GherkinFormatterAdapter
#after_features, #before_background, #before_examples, #before_feature, #before_feature_element, #before_step, #before_step_result, #embed
Constructor Details
- (Gpretty) initialize(step_mother, io, options)
A new instance of Gpretty
12 13 14 15 |
# File 'lib/cucumber/formatter/gpretty.rb', line 12 def initialize(step_mother, io, ) @io = ensure_io(io, "json") super(Gherkin::Formatter::PrettyFormatter.new(@io, false), true) end |
Instance Method Details
- (Object) after_feature(feature)
17 18 19 20 |
# File 'lib/cucumber/formatter/gpretty.rb', line 17 def after_feature(feature) super @io.puts end |