Class: Cucumber::Runtime::SupportCode::StepInvoker

Inherits:
Object
  • Object
show all
Includes:
Gherkin::Rubify
Defined in:
lib/cucumber/runtime/support_code.rb

Instance Method Summary collapse

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

#eofObject



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