lib/guard/notifier.rb
# Get the notification type depending on the
# image that has been selected for the notification.
#
# @param [Symbol, String] image the image symbol or path to an image
# @return [String] the notification type
#
Get the notification type depending on the
image that has been selected for the notification.
Get the notification type depending on the image that has been selected for the notification .
def notification_type(image)
      case image
        when :failed
          'failed'
        when :pending
          'pending'
        when :success
          'success'
        else
          'notify'
      end
    end
def notification_type ( image ) case image when :failed 'failed' when :pending 'pending' when :success 'success' else 'notify' end end
Get the notification type depending on the
image that has been selected for the notification.
Get the notification type depending on the image that has been selected for the notification .
the notification type
the notification type
String
image
None