Class: Cucumber::Events::StepDefinitionRegistered

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/events/step_definition_registered.rb

Overview

 Event fired after each step definition has been registered

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step_definition) ⇒ StepDefinitionRegistered

_@private



17
18
19
# File 'lib/cucumber/events/step_definition_registered.rb', line 17

def initialize(step_definition)
  @step_definition = step_definition
end

Instance Attribute Details

#step_definitionRbSupport::RbStepDefinition (readonly)

_The step definition that was just registered.

Returns:

  • (RbSupport::RbStepDefinition)


14
15
16
# File 'lib/cucumber/events/step_definition_registered.rb', line 14

def step_definition
  @step_definition
end