@private
# File lib/cucumber/core/compiler.rb, line 106 def initialize(source, receiver) @source = source @receiver = receiver end
# File lib/cucumber/core/compiler.rb, line 116 def examples_table(examples_table, &descend) @examples_table = examples_table descend.call(self) self end
# File lib/cucumber/core/compiler.rb, line 122 def examples_table_row(row) steps(row).each do |step| receiver.on_step(source + [@examples_table, row, step]) end receiver.on_test_case(source + [@examples_table, row]) self end
# File lib/cucumber/core/compiler.rb, line 111 def outline_step(outline_step) outline_steps << outline_step self end
# File lib/cucumber/core/compiler.rb, line 136 def outline_steps @outline_steps ||= [] end
# File lib/cucumber/core/compiler.rb, line 132 def steps(row) outline_steps.map { |s| s.to_step(row) } end