Sha256: d3d923c78e53cfcbf6445bcbd199bf17257920f9762cf8439cb1226fa99dce61
Contents?: true
Size: 1.95 KB
Versions: 11
Compression:
Stored size: 1.95 KB
Contents
module Cucumber module Ast # A dumb visitor that implements the whole Visitor API and just walks the tree. class Visitor attr_accessor :options def initialize(step_mother) @step_mother = step_mother end def world(scenario, &proc) @step_mother.world(scenario, &proc) end def step_definition(step_name) @step_mother.step_definition(step_name) end def current_feature_lines=(lines) @current_feature_lines = lines end def current_feature_lines @current_feature_lines || [] end def visit_features(features) features.accept(self) end def visit_feature(feature) feature.accept(self) end def visit_comment(comment) comment.accept(self) end def visit_comment_line(comment_line) end def visit_tags(tags) tags.accept(self) end def visit_tag_name(tag_name) end def visit_feature_name(name) end # +feature_element+ is either Scenario or ScenarioOutline def visit_feature_element(feature_element) feature_element.accept(self) end def visit_examples(examples) examples.accept(self) end def visit_examples_name(keyword, name) end def visit_scenario_name(keyword, name, file_line, source_indent) end def visit_step(step) step.accept(self) end def visit_step_name(keyword, step_name, status, step_definition, source_indent) end def visit_multiline_arg(multiline_arg, status) multiline_arg.accept(self, status) end def visit_py_string(string, status) end def visit_table_row(table_row, status) table_row.accept(self, status) end def visit_table_cell(table_cell, status) table_cell.accept(self, status) end def visit_table_cell_value(value, width, status) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems