lib/guard/notifiers/tmux.rb
def tmux_color(type, options = { })
        case type
        when 'success'
          options[:success] || DEFAULTS[:success]
        when 'failed'
          options[:failed]  || DEFAULTS[:failed]
        when 'pending'
          options[:pending] || DEFAULTS[:pending]
        else
          options[:default] || DEFAULTS[:default]
        end
      end
# Get the Tmux color for the notification type.
# You can configure your own color by overwriting the defaults.
#
# @param [String] type the notification type
# @return [String] the name of the emacs color
#
Get the Tmux color for the notification type.
You can configure your own color by overwriting the defaults.
Get the Tmux color for the notification type . You can configure your own color by overwriting the defaults .
def tmux_color(type, options = { })
        case type
        when 'success'
          options[:success] || DEFAULTS[:success]
        when 'failed'
          options[:failed]  || DEFAULTS[:failed]
        when 'pending'
          options[:pending] || DEFAULTS[:pending]
        else
          options[:default] || DEFAULTS[:default]
        end
      end
def tmux_color ( type , options = { } ) case type when 'success' options [ :success ] || DEFAULTS [ :success ] when 'failed' options [ :failed ] || DEFAULTS [ :failed ] when 'pending' options [ :pending ] || DEFAULTS [ :pending ] else options [ :default ] || DEFAULTS [ :default ] end end
Get the Tmux color for the notification type.
Get the Tmux color for the notification type .
the name of the emacs color
the name of the emacs color
String
type
options
type the notification type
type the notification type