Class: Turnip::Builder
- Inherits:
-
Object
- Object
- Turnip::Builder
- Defined in:
- lib/turnip_formatter/ext/turnip/builder.rb
Defined Under Namespace
Classes: ScenarioOutline, Step1
Instance Method Summary collapse
Instance Method Details
#step(step) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/turnip_formatter/ext/turnip/builder.rb', line 36 def step(step) extra_args = [] if step.doc_string extra_args.push step.doc_string.value elsif step.rows extra_args.push Turnip::Table.new(step.rows.map { |row| row.cells(&:value) }) end @current_step_context.steps << Step1.new(step.name, extra_args, step.line, step.keyword) end |