Module: Sinatra::AlertHelper

Extended by:
Hexacta
Defined in:
lib/sinatra/helpers/alerts.rb

Constant Summary

Constants included from Hexacta

Hexacta::GEM_FILE_DIR

Instance Method Summary collapse

Methods included from Hexacta

copy_dir_structure, setup_dir, symlink, symlink_all

Instance Method Details

#empty_alert(option_hash) ⇒ Object



10
11
12
# File 'lib/sinatra/helpers/alerts.rb', line 10

def empty_alert(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/alerts/empty".to_sym, locals: option_hash
end

#error_alert(option_hash) ⇒ Object



18
19
20
# File 'lib/sinatra/helpers/alerts.rb', line 18

def error_alert(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/alerts/error".to_sym, locals: option_hash
end

#info_alert(option_hash) ⇒ Object



6
7
8
# File 'lib/sinatra/helpers/alerts.rb', line 6

def info_alert(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/alerts/info".to_sym, locals: option_hash
end

#warning_alert(option_hash) ⇒ Object



14
15
16
# File 'lib/sinatra/helpers/alerts.rb', line 14

def warning_alert(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/alerts/warning".to_sym, locals: option_hash
end