Class: BaseStage
- Inherits:
-
Object
- Object
- BaseStage
- Defined in:
- lib/asker/ai/stages/base_stage.rb
Instance Method Summary collapse
-
#initialize(concept_ai) ⇒ BaseStage
constructor
A new instance of BaseStage.
-
#method_missing(m, *args, &block) ⇒ Object
If a method we call is missing, pass the call onto the object we delegate to.
- #run ⇒ Object
Constructor Details
#initialize(concept_ai) ⇒ BaseStage
Returns a new instance of BaseStage.
3 4 5 |
# File 'lib/asker/ai/stages/base_stage.rb', line 3 def initialize(concept_ai) @concept_ai = concept_ai end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
If a method we call is missing, pass the call onto the object we delegate to.
9 10 11 |
# File 'lib/asker/ai/stages/base_stage.rb', line 9 def method_missing(m, *args, &block) @concept_ai.send(m, *args, &block) end |
Instance Method Details
#run ⇒ Object
13 14 15 |
# File 'lib/asker/ai/stages/base_stage.rb', line 13 def run raise 'Implement run method!' end |