Sha256: e24c52c9d2d7fce883392e3ab71a70e7d6f00469b53e8dddfe5532b3a200fb42
Contents?: true
Size: 511 Bytes
Versions: 3
Compression:
Stored size: 511 Bytes
Contents
require "terminal-notifier" module Linner class Notifier class << self def info 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
linner-0.3.2 | lib/linner/notifier.rb |
linner-0.3.1 | lib/linner/notifier.rb |
linner-0.3.0 | lib/linner/notifier.rb |