Class: SpecForge::Forge::Action
- Inherits:
-
Object
- Object
- SpecForge::Forge::Action
- Defined in:
- lib/spec_forge/forge/action.rb
Overview
Base class for step actions
Actions are the executable units within a step. Each action type (Call, Debug, Expect, Request, Store) inherits from this base class and implements the run method to perform its specific behavior.
Instance Attribute Summary collapse
-
#step ⇒ Step
readonly
The step being executed.
Instance Method Summary collapse
-
#initialize(step) ⇒ Action
constructor
Creates a new action for the given step.
-
#run(_forge) ⇒ void
Executes the action.
Constructor Details
#initialize(step) ⇒ Action
Creates a new action for the given step
23 24 25 |
# File 'lib/spec_forge/forge/action.rb', line 23 def initialize(step) @step = step end |
Instance Attribute Details
#step ⇒ Step (readonly)
Returns The step being executed.
14 15 16 |
# File 'lib/spec_forge/forge/action.rb', line 14 def step @step end |
Instance Method Details
#run(_forge) ⇒ void
This method returns an undefined value.
Executes the action
36 37 38 |
# File 'lib/spec_forge/forge/action.rb', line 36 def run(_forge) raise "not implemented" end |