module ConceptDocFormatter
Formatter Concept
to Doc
Public Class Methods
table_to_s(table)
click to toggle source
to_s(concept)
click to toggle source
Formatter Concept
into Doc @param concept (Concept
)
# File lib/asker/formatter/concept_doc_formatter.rb, line 14 def self.to_s(concept) out = '' out << "\n#{Rainbow(concept.name).bg(:blue).bright}\n\n" concept.texts.each { |i| out << "* #{i}\n" } out << "\n" concept.tables.each do |table| out << table_to_s(table) end out end