Class: Step
- Inherits:
-
Object
- Object
- Step
- Defined in:
- lib/static_mock/step.rb
Instance Attribute Summary collapse
-
#step_name ⇒ Object
Returns the value of attribute step_name.
Instance Method Summary collapse
-
#initialize(step_name, step_definition) ⇒ Step
constructor
A new instance of Step.
- #run ⇒ Object
Constructor Details
#initialize(step_name, step_definition) ⇒ Step
Returns a new instance of Step.
4 5 6 7 |
# File 'lib/static_mock/step.rb', line 4 def initialize(step_name, step_definition) @step_name = step_name @step_definition = step_definition end |
Instance Attribute Details
#step_name ⇒ Object
Returns the value of attribute step_name.
2 3 4 |
# File 'lib/static_mock/step.rb', line 2 def step_name @step_name end |
Instance Method Details
#run ⇒ Object
9 10 11 |
# File 'lib/static_mock/step.rb', line 9 def run @step_definition.call end |