Method: StageF#run

Defined in:
lib/asker/ai/stages/stage_f.rb

#run(table, list1, list2) ⇒ Object

run stage_f: generate guqestion for tables with 1 field

Parameters:

  • table (Table)
  • list1 (Array)

    List of Rows from this table

  • list2 (Array)

    List of Row from other tables



12
13
14
15
16
17
18
19
20
21
# File 'lib/asker/ai/stages/stage_f.rb', line 12

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