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.



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

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



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

def method_missing(*)
  self
end

Instance Method Details

#step?Boolean

Returns:

  • (Boolean)


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

def step?
  @is_step
end

#test_stepObject



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

def test_step(*)
  @is_step = true
end