module Sinatra::AlertHelper

Public Instance Methods

empty_alert(option_hash) click to toggle source
# File lib/sinatra/helpers/alerts.rb, line 14
def empty_alert(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/alerts/empty".to_sym, locals: option_hash
end
error_alert(option_hash) click to toggle source
# File lib/sinatra/helpers/alerts.rb, line 22
def error_alert(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/alerts/error".to_sym, locals: option_hash
end
info_alert(option_hash) click to toggle source
# File lib/sinatra/helpers/alerts.rb, line 10
def info_alert(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/alerts/info".to_sym, locals: option_hash
end
process_alert(option_hash) click to toggle source
# File lib/sinatra/helpers/alerts.rb, line 26
def process_alert(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/alerts/process".to_sym, locals: option_hash
end
success_alert(option_hash) click to toggle source
# File lib/sinatra/helpers/alerts.rb, line 6
def success_alert(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/alerts/success".to_sym, locals: option_hash
end
warning_alert(option_hash) click to toggle source
# File lib/sinatra/helpers/alerts.rb, line 18
def warning_alert(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/alerts/warning".to_sym, locals: option_hash
end