Module: ConceptScreenExporter
- Defined in:
- lib/asker/exporter/concept_screen_exporter.rb
Overview
Show Concept Data on screen
Class Method Summary collapse
Class Method Details
.export_all(concepts) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/asker/exporter/concept_screen_exporter.rb', line 6 def self.export_all(concepts) project = Project.instance return if project.show_mode == :none msg = "\n[INFO] Showing concept data <" msg += Rainbow(project.show_mode.to_s).bright + '>' project.verbose msg case project.show_mode when :resume s = "* Concepts (#{concepts.count}): " concepts.each { |c| s += c.name + ', ' } project.verbose s when :default # Only show Concepts with process attr true concepts.each do |c| project.verbose ConceptStringFormatter.to_s(c) if c.process? end end end |