Sha256: 4d7c8fe065f1a1786afa8f6524fe14c9b89bc427bf66c5331eb16ddd2ce6c017

Contents?: true

Size: 307 Bytes

Versions: 5

Compression:

Stored size: 307 Bytes

Contents

class BaseStage
  def initialize(concept_ai)
    @concept_ai = concept_ai
  end

  # If a method we call is missing, pass the call onto
  # the object we delegate to.
  def method_missing(m, *args, &block)
    @concept_ai.send(m, *args, &block)
  end

  def run
    raise 'Implement run method!'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
asker-tool-2.1.7 lib/asker/ai/stages/base_stage.rb
asker-tool-2.1.6 lib/asker/ai/stages/base_stage.rb
asker-tool-2.1.5 lib/asker/ai/stages/base_stage.rb
asker-tool-2.1.3 lib/asker/ai/stages/base_stage.rb
asker-tool-2.1.2 lib/asker/ai/stages/base_stage.rb