Class: BaseStage

Inherits:
Object
  • Object
show all
Defined in:
lib/asker/ai/stages/base_stage.rb

Direct Known Subclasses

StageB, StageD, StageF, StageI, StageS, StageT

Instance Method Summary collapse

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

#runObject



13
14
15
# File 'lib/asker/ai/stages/base_stage.rb', line 13

def run
  raise 'Implement run method!'
end