Class: StageF
Instance Method Summary collapse
-
#run(table, list1, list2) ⇒ Object
run stage_f: generate guqestion for tables with 1 field.
Methods inherited from BaseStage
#concept, #images, #initialize, #lang, #name, #names, #neighbors, #num, #random_image_for, #texts, #type
Constructor Details
This class inherits a constructor from BaseStage
Instance Method Details
#run(table, list1, list2) ⇒ Object
run stage_f: generate guqestion for tables with 1 field
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 |