lib/asker/ai/ai.rb in asker-tool-2.1.5 vs lib/asker/ai/ai.rb in asker-tool-2.1.6

- old
+ new

@@ -44,10 +44,12 @@ reorder_list_with_row(list3, row) @questions[:t] += StageT.new(self).run(tab, row, list3) end end + # rubocop:disable Metrics/AbcSize + # rubocop:disable Metrics/MethodLength def exclude_questions param = Application.instance.config['questions']['exclude'] return if param.nil? tags = param.split(',').each(&:strip!) @@ -59,9 +61,11 @@ input[key] = @questions[key] - output[key] end @questions = input @excluded_questions = output end + # rubocop:enable Metrics/AbcSize + # rubocop:enable Metrics/MethodLength def string_has_this_tags?(input, tags) flag = false tags.each { |e| flag = true if input.include? e } flag