Class: Cucumber::Distrib::Events::StepArgument
- Inherits:
-
Object
- Object
- Cucumber::Distrib::Events::StepArgument
- 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
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#parameter_type ⇒ Object
readonly
Returns the value of attribute parameter_type.
Instance Method Summary collapse
-
#initialize(step_argument) ⇒ StepArgument
constructor
A new instance of StepArgument.
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
#group ⇒ Object (readonly)
Returns the value of attribute group.
270 271 272 |
# File 'lib/cucumber/distrib/events.rb', line 270 def group @group end |
#parameter_type ⇒ Object (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 |