Class: Cucumber::Formatter::Steps

Inherits:
Ast::Visitor show all
Defined in:
lib/cucumber/formatter/steps.rb

Overview

The formatter used for --format steps

Instance Attribute Summary

Attributes inherited from Ast::Visitor

#options, #step_mother

Instance Method Summary collapse

Methods inherited from Ast::Visitor

#announce, #visit_background, #visit_background_name, #visit_comment, #visit_comment_line, #visit_examples, #visit_examples_array, #visit_examples_name, #visit_exception, #visit_feature, #visit_feature_element, #visit_feature_name, #visit_multiline_arg, #visit_outline_table, #visit_py_string, #visit_scenario_name, #visit_step, #visit_step_name, #visit_step_result, #visit_steps, #visit_table_cell, #visit_table_cell_value, #visit_table_row, #visit_tag_name, #visit_tags

Constructor Details

#initialize(step_mother, io, options) ⇒ Steps

Returns a new instance of Steps.



6
7
8
9
10
11
# File 'lib/cucumber/formatter/steps.rb', line 6

def initialize(step_mother, io, options)
  super(step_mother)
  @io = io
  @options = options
  @step_definition_files = collect_steps(step_mother)
end

Instance Method Details

#visit_features(features) ⇒ Object



13
14
15
# File 'lib/cucumber/formatter/steps.rb', line 13

def visit_features(features)
  print_summary
end