Class: Guard::Asciidoctor::Notifier

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/asciidoctor/notifier.rb

Class Method Summary collapse

Class Method Details

.image(result) ⇒ Object



9
10
11
# File 'lib/guard/asciidoctor/notifier.rb', line 9

def image(result)
  result ? :success : :failed
end

.notify(result, message) ⇒ Object



13
14
15
# File 'lib/guard/asciidoctor/notifier.rb', line 13

def notify(result, message)
  Compat::UI.notify(message, title: 'Guard::Asciidoctor', image: image(result))
end