Class: Cucumber::Distrib::Events::StepDefinitionRegistered

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

Overview

Object that mimic Cucumber::Event::StepDefinitionRegistered on Leader for reporters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Event

event_id, #metadata

Constructor Details

#initialize(event) ⇒ StepDefinitionRegistered

Returns a new instance of StepDefinitionRegistered.

Parameters:

  • event (Cucumber::Events::StepDefinitionRegistered)


339
340
341
342
# File 'lib/cucumber/distrib/events.rb', line 339

def initialize(event)
  super()
  @step_definition = StepDefinition.new event.step_definition
end

Instance Attribute Details

#step_definitionObject (readonly)

Returns the value of attribute step_definition.



336
337
338
# File 'lib/cucumber/distrib/events.rb', line 336

def step_definition
  @step_definition
end