Class: Cucumber::Runtime::SupportCode::StepInvoker
- Includes:
- Gherkin::Rubify
- Defined in:
- lib/cucumber/runtime/support_code.rb
Instance Method Summary collapse
- #eof ⇒ Object
-
#initialize(support_code) ⇒ StepInvoker
constructor
A new instance of StepInvoker.
- #step(step) ⇒ Object
- #uri(uri) ⇒ Object
Constructor Details
#initialize(support_code) ⇒ StepInvoker
Returns a new instance of StepInvoker.
13 14 15 |
# File 'lib/cucumber/runtime/support_code.rb', line 13 def initialize(support_code) @support_code = support_code end |
Instance Method Details
#eof ⇒ Object
32 33 |
# File 'lib/cucumber/runtime/support_code.rb', line 32 def eof end |
#step(step) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/cucumber/runtime/support_code.rb', line 20 def step(step) cucumber_multiline_arg = case(rubify(step.multiline_arg)) when Gherkin::Formatter::Model::PyString step.multiline_arg.value when Array Ast::Table.new(step.multiline_arg.map{|row| row.cells}) else nil end @support_code.invoke(step.name, cucumber_multiline_arg) end |
#uri(uri) ⇒ Object
17 18 |
# File 'lib/cucumber/runtime/support_code.rb', line 17 def uri(uri) end |