Class: Preek::CompactOutput

Inherits:
Output
  • Object
show all
Defined in:
lib/preek/output.rb

Instance Method Summary collapse

Methods inherited from Output

#blue, #green, #red, #separated

Instance Method Details



40
41
42
# File 'lib/preek/output.rb', line 40

def print_line
  say "\n-\n\n"
end

#status(title, text, color = nil) ⇒ Object



34
35
36
37
38
# File 'lib/preek/output.rb', line 34

def status(title, text, color = nil)
  title = title.to_s + ": " if title.is_a?(Symbol)
  say title, color, false
  say text
end