require "terminal-notifier" module Linner class Notifier class << self def profile time = Time.now yield puts "šŸœ : Done in #{'%.3f' % (Time.now - time)}s." end def error(message) puts message = "šŸ‘» : #{message}!" if Linner.env.notification && TerminalNotifier.available? TerminalNotifier.notify message, :title => 'Linner' end end def exit puts "\ršŸµ : Let's take a break!" end end end end