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.
15 16 17 |
# File 'lib/cucumber/runtime/support_code.rb', line 15 def initialize(support_code) @support_code = support_code end |
Instance Method Details
#eof ⇒ Object
26 27 |
# File 'lib/cucumber/runtime/support_code.rb', line 26 def eof end |
#step(step) ⇒ Object
22 23 24 |
# File 'lib/cucumber/runtime/support_code.rb', line 22 def step(step) @support_code.invoke(step.name, Ast::MultilineArgument.from(step.doc_string || step.rows)) end |
#uri(uri) ⇒ Object
19 20 |
# File 'lib/cucumber/runtime/support_code.rb', line 19 def uri(uri) end |