Class: Cucumber::Core::Test::IsStepVisitor

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

Instance Method Summary collapse

Constructor Details

#initialize(test_step) ⇒ IsStepVisitor

Returns a new instance of IsStepVisitor.



57
58
59
60
# File 'lib/cucumber/core/test/step.rb', line 57

def initialize(test_step)
  @is_step = false
  test_step.describe_to(self)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingObject



70
71
72
# File 'lib/cucumber/core/test/step.rb', line 70

def method_missing(*)
  self
end

Instance Method Details

#step?Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/cucumber/core/test/step.rb', line 62

def step?
  @is_step
end

#test_stepObject



66
67
68
# File 'lib/cucumber/core/test/step.rb', line 66

def test_step(*)
  @is_step = true
end