Class: Preek::Output

Inherits:
Thor::Shell::Color
  • Object
show all
Defined in:
lib/preek/output.rb

Direct Known Subclasses

CompactOutput

Instance Method Summary collapse

Instance Method Details

#blue(*args) ⇒ Object



12
13
14
# File 'lib/preek/output.rb', line 12

def blue(*args)
  status *args, :blue
end

#green(*args) ⇒ Object



16
17
18
# File 'lib/preek/output.rb', line 16

def green(*args)
  status *args, :green
end


8
9
10
# File 'lib/preek/output.rb', line 8

def print_line
  say "\n\t#{'-'*60}\n\n"
end

#red(*args) ⇒ Object



20
21
22
# File 'lib/preek/output.rb', line 20

def red(*args)
  status *args, :red
end

#status(*args) ⇒ Object



4
5
6
# File 'lib/preek/output.rb', line 4

def status(*args)
  say_status *args
end