lib/guard/notifier.rb
# Get the image path for an image symbol for the following
# known image types:
#
# - failed
# - pending
# - success
#
# If the image is not a known symbol, it will be returned unmodified.
#
# @param [Symbol, String] image the image symbol or path to an image
# @return [String] the image path
#
Get the image path for an image symbol for the following
known image types.

failed
pending
success

If the image is not a known symbol, it will be returned unmodified.
Get the image path for an image symbol for the following known image types . failed pending success If the image is not a known symbol it will be returned unmodified .
def image_path(image)
      case image
        when :failed
          images_path.join('failed.png').to_s
        when :pending
          images_path.join('pending.png').to_s
        when :success
          images_path.join('success.png').to_s
        else
          image
      end
    end
def image_path ( image ) case image when :failed images_path . join ( 'failed.png' ) . to_s when :pending images_path . join ( 'pending.png' ) . to_s when :success images_path . join ( 'success.png' ) . to_s else image end end
Get the image path for an image symbol for the following
known image types:
Get the image path for an image symbol for the following known image types :
the image path
the image path
String
image
None