Class: Cucumber::Core::Test::Mapper::StepMapper

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/core/test/mapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStepMapper

Returns a new instance of StepMapper.



43
44
45
46
# File 'lib/cucumber/core/test/mapper.rb', line 43

def initialize(*)
  super
  @mapped_test_step = test_step
end

Instance Attribute Details

#mapped_test_stepObject (readonly)

Returns the value of attribute mapped_test_step.



41
42
43
# File 'lib/cucumber/core/test/mapper.rb', line 41

def mapped_test_step
  @mapped_test_step
end

Instance Method Details

#map(&block) ⇒ Object



48
49
50
# File 'lib/cucumber/core/test/mapper.rb', line 48

def map(&block)
  @mapped_test_step = test_step.map(&block)
end