Class: Cucumber::Distrib::Events::StepDefinition

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

Overview

PORO wrapper of corresponding cucumber event for safe transportation to Leader over DRb.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step_definition) ⇒ StepDefinition

Returns a new instance of StepDefinition.



251
252
253
254
# File 'lib/cucumber/distrib/events.rb', line 251

def initialize(step_definition)
  @id = step_definition.id
  @envelope = step_definition.to_envelope
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



249
250
251
# File 'lib/cucumber/distrib/events.rb', line 249

def id
  @id
end