Class: StageF

Inherits:
BaseStage show all
Defined in:
lib/asker/ai/stages/stage_f.rb

Overview

StageF: process tables with 1 field

Instance Method Summary collapse

Methods inherited from BaseStage

#initialize, #method_missing

Constructor Details

This class inherits a constructor from BaseStage

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BaseStage

Instance Method Details

#run(table, list1, list2) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/asker/ai/stages/stage_f.rb', line 7

def run(table, list1, list2)
  # process_table1field
  questions = []
  return questions if table.fields.count>1

  questions += run_only_this_concept(table, list1)
  questions += run_with_other_concepts(table, list1, list2)

  questions
end