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.



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

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



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

def method_missing(*)
  self
end

Instance Method Details

#step?Boolean

Returns:

  • (Boolean)


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

def step?
  @is_step
end

#test_stepObject



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

def test_step(*)
  @is_step = true
end