Class: Linner::Notifier
- Inherits:
-
Object
- Object
- Linner::Notifier
- Defined in:
- lib/linner/notifier.rb
Class Method Summary collapse
Class Method Details
.error(message) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/linner/notifier.rb', line 12 def error() abort = "š» : #{}!" if Linner.env.notification && TerminalNotifier.available? TerminalNotifier.notify , :title => "Linner" end end |
.exit ⇒ Object
19 20 21 |
# File 'lib/linner/notifier.rb', line 19 def exit puts "\ršµ : Let's take a break!" end |
.profile ⇒ Object
6 7 8 9 10 |
# File 'lib/linner/notifier.rb', line 6 def profile time = Time.now yield puts "š : Done in #{"%.3f" % (Time.now - time)}s." end |