Class: Cucumber::Distrib::Events::StepArgument

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_argument) ⇒ StepArgument

Returns a new instance of StepArgument.



272
273
274
275
276
277
278
279
# File 'lib/cucumber/distrib/events.rb', line 272

def initialize(step_argument)
  @group = step_argument.group
  @parameter_type = step_argument.parameter_type.dup
  # Cannot pass lambda over DRb, pass a string literal instead.
  @parameter_type.instance_variable_set(:@transformer, 'asd')
  # Cannot pass types from platform app (like Role), as they are not loaded by the leader.
  @parameter_type.instance_variable_set(:@type, String)
end

Instance Attribute Details

#groupObject (readonly)

Returns the value of attribute group.



270
271
272
# File 'lib/cucumber/distrib/events.rb', line 270

def group
  @group
end

#parameter_typeObject (readonly)

Returns the value of attribute parameter_type.



270
271
272
# File 'lib/cucumber/distrib/events.rb', line 270

def parameter_type
  @parameter_type
end