Class: Guard::Haml::Notifier

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

Class Method Summary collapse

Class Method Details

.image(result) ⇒ Object



7
8
9
# File 'lib/guard/haml/notifier.rb', line 7

def image result
  result ? :success : :failed
end

.notify(result, message) ⇒ Object



11
12
13
14
15
16
# File 'lib/guard/haml/notifier.rb', line 11

def notify( result, message )
  ::Guard::Notifier.notify( message, 
                            :title => 'Guard::Haml', 
                            :image => image( result ) 
                          )
end