Class: ExportProblem2Gift

Inherits:
Object
  • Object
show all
Defined in:
lib/asker/exporter/gift/export_problem2gift.rb

Instance Method Summary collapse

Instance Method Details

#call(problems, file) ⇒ Object

Export an Array of problems to gift format file

Parameters:

  • problems (Array)


7
8
9
# File 'lib/asker/exporter/gift/export_problem2gift.rb', line 7

def call(problems, file)
  problems.each { |problem| export_one(problem, file) }
end