Class: Cucumber::Core::Test::IsStepVisitor
- Inherits:
-
Object
- Object
- Cucumber::Core::Test::IsStepVisitor
show all
- Defined in:
- lib/cucumber/core/test/step.rb
Instance Method Summary
collapse
Constructor Details
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_missing ⇒ Object
79
80
81
|
# File 'lib/cucumber/core/test/step.rb', line 79
def method_missing(*)
self
end
|
Instance Method Details
#step? ⇒ Boolean
71
72
73
|
# File 'lib/cucumber/core/test/step.rb', line 71
def step?
@is_step
end
|
#test_step ⇒ Object
75
76
77
|
# File 'lib/cucumber/core/test/step.rb', line 75
def test_step(*)
@is_step = true
end
|