Class: Cucumber::Tcl::StepDefinitions

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/tcl/step_definitions.rb

Defined Under Namespace

Classes: ArgumentList, ExecuteResponse

Instance Method Summary collapse

Constructor Details

#initialize(tcl_framework) ⇒ StepDefinitions

Returns a new instance of StepDefinitions.



8
9
10
# File 'lib/cucumber/tcl/step_definitions.rb', line 8

def initialize(tcl_framework)
  @tcl_framework = tcl_framework
end

Instance Method Details

#attempt_to_activate(test_step) ⇒ Object



12
13
14
15
# File 'lib/cucumber/tcl/step_definitions.rb', line 12

def attempt_to_activate(test_step)
  return test_step unless match?(test_step)
  test_step.with_action &action_for(test_step)
end