Method: LearnError#emit

Defined in:
lib/learn-tool/learn-error.rb

#emit(opts = {}) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/learn-tool/learn-error.rb', line 33

def emit(opts={})
  color   = opts[:color]
  message = opts[:message]
  print ESCAPES[color]
  print message
  print ESCAPES[:reset]
  print "\n"
end