Sha256: 6bac9b9d0b31ba437dc9239b3d28939eb550b5b0a1e3f2f86162edf3be956be1

Contents?: true

Size: 275 Bytes

Versions: 14

Compression:

Stored size: 275 Bytes

Contents

require_relative '../formatter/question_moodle_formatter'

module CodeMoodleExporter

  def self.run(code, file)
    return false unless code.process?

    code.questions.each do |question|
      file.write QuestionMoodleFormatter.to_s(question)
    end
    true
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
asker-tool-2.6.0 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.5.9 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.5.8 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.5.7 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.5.6 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.5.5 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.5.4 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.5.3 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.5.2 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.5.1 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.5.0 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.4.5 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.4.4 lib/asker/exporter/code_moodle_exporter.rb
asker-tool-2.4.3 lib/asker/exporter/code_moodle_exporter.rb