Module: ConceptStringFormatter

Defined in:
lib/asker/formatter/concept_string_formatter.rb

Class Method Summary collapse

Class Method Details

.to_s(concept) ⇒ Object

Formatter Concept to String

Parameters:

Returns:

  • String



11
12
13
14
15
# File 'lib/asker/formatter/concept_string_formatter.rb', line 11

def self.to_s(concept)
  tt = Terminal::Table.new
  get_tt_rows(concept).each { |row| tt.add_row row }
  tt.to_s
end