Sha256: 48924663eae9fbe002c60294a53d6c83e251f97caa6efbae88306b7ee230734e
Contents?: true
Size: 520 Bytes
Versions: 1
Compression:
Stored size: 520 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.environment.notifications && 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
linner-0.1.1 | lib/linner/notifier.rb |