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