module Automate::Messenger
Public Instance Methods
fail(x, y="")
click to toggle source
# File lib/automate/messenger.rb, line 22 def fail(x, y="") puts format(x).color(:red) + y end
format(x)
click to toggle source
# File lib/automate/messenger.rb, line 6 def format(x) "#{prefix}#{x}" end
msg(x)
click to toggle source
# File lib/automate/messenger.rb, line 10 def msg(x) puts format(x) end
notice(x, y="")
click to toggle source
# File lib/automate/messenger.rb, line 18 def notice(x, y="") puts format(x).color(:yellow) + y end
prefix()
click to toggle source
Overwrite these in your importing class
# File lib/automate/messenger.rb, line 27 def prefix; raise NotImplementedError; end
success(x, y="")
click to toggle source
# File lib/automate/messenger.rb, line 14 def success(x, y="") puts format(x).color(:green) + y end