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.



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

def initialize(tcl_framework)
  @tcl_framework = tcl_framework
end

Instance Method Details

#attempt_to_activate(test_step) ⇒ Object



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

def attempt_to_activate(test_step)
  return test_step unless match?(test_step)

  test_step.with_action(&action_for(test_step))
end