Module: ConceptDocExporter
- Defined in:
- lib/asker/exporter/concept_doc_exporter.rb
Overview
Export Concept to Doc file
Class Method Summary collapse
-
.export_all(concepts, project) ⇒ Object
Export arrya of concepts to doc rubocop:disable Metrics/AbcSize rubocop:disable Metrics/MethodLength.
Class Method Details
.export_all(concepts, project) ⇒ Object
Export arrya of concepts to doc rubocop:disable Metrics/AbcSize rubocop:disable Metrics/MethodLength
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/asker/exporter/concept_doc_exporter.rb', line 12 def self.export_all(concepts, project) file = File.new(project.get(:lessonpath), 'w') file.write('=' * 50 + "\n") file.write("Created by : #{Application::NAME} (version #{Application::VERSION})\n") file.write("File : #{project.get(:lessonname)}\n") file.write("Time : #{Time.new}\n") file.write("Author : David Vargas Ruiz\n") file.write('=' * 50 + "\n") concepts.each do |concept| file.write(ConceptDocFormatter.to_s(concept)) if concept.process end file.close end |