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.



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

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



79
80
81
# File 'lib/cucumber/core/test/step.rb', line 79

def method_missing(*)
  self
end

Instance Method Details

#step?Boolean

Returns:

  • (Boolean)


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

def step?
  @is_step
end

#test_stepObject



75
76
77
# File 'lib/cucumber/core/test/step.rb', line 75

def test_step(*)
  @is_step = true
end