Class: Cucumber::Ast::OutlineTable
- Inherits:
-
Table
show all
- Defined in:
- lib/cucumber/ast/outline_table.rb
Defined Under Namespace
Classes: ExampleCells
Constant Summary
Constants inherited
from Table
Table::NULL_CONVERSIONS
Instance Attribute Summary
Attributes inherited from Table
#file
Instance Method Summary
collapse
Methods inherited from Table
#arguments_replaced, #cells_rows, default_arg_name, #dup, #each_cells_row, #hashes, #header_cell, #index, #map_column!, #map_headers, #raw, #rows, #rows_hash, #to_hash, #to_sexp, #transpose, #verify_column, #verify_table_width
Constructor Details
#initialize(raw, scenario_outline) ⇒ OutlineTable
Returns a new instance of OutlineTable.
4
5
6
7
8
9
|
# File 'lib/cucumber/ast/outline_table.rb', line 4
def initialize(raw, scenario_outline)
super(raw)
@scenario_outline = scenario_outline
@cells_class = ExampleCells
create_step_invocations_for_example_rows!(scenario_outline)
end
|
Instance Method Details
#accept(visitor) ⇒ Object
11
12
13
14
15
16
|
# File 'lib/cucumber/ast/outline_table.rb', line 11
def accept(visitor)
cells_rows.each_with_index do |row, n|
visitor.visit_table_row(row)
end
nil
end
|
#create_step_invocations_for_example_rows!(scenario_outline) ⇒ Object
24
25
26
27
28
|
# File 'lib/cucumber/ast/outline_table.rb', line 24
def create_step_invocations_for_example_rows!(scenario_outline)
example_rows.each do |cells|
cells.create_step_invocations!(scenario_outline)
end
end
|
#example_rows ⇒ Object
30
31
32
|
# File 'lib/cucumber/ast/outline_table.rb', line 30
def example_rows
cells_rows[1..-1]
end
|
#skip_invoke! ⇒ Object
18
19
20
21
22
|
# File 'lib/cucumber/ast/outline_table.rb', line 18
def skip_invoke!
example_rows.each do |cells|
cells.skip_invoke!
end
end
|