class Linner::Notifier

Public Class Methods

error(message) click to toggle source
# File lib/linner/notifier.rb, line 12
def error(message)
  abort message = "šŸ‘» : #{message}!"
  if Linner.env.notification && TerminalNotifier.available?
    TerminalNotifier.notify message, :title => "Linner"
  end
end
exit() click to toggle source
# File lib/linner/notifier.rb, line 19
def exit
  puts "\ršŸµ : Let's take a break!"
end
profile() { || ... } click to toggle source
# File lib/linner/notifier.rb, line 6
def profile
  time = Time.now
  yield
  puts "šŸœ : Done in #{"%.3f" % (Time.now - time)}s."
end