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_all_files, copy_dir_structure, copy_file, gem_path, setup_dir
Instance Method Details
#empty_alert(option_hash) ⇒ Object
14
15
16
|
# 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) ⇒ Object
22
23
24
|
# 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) ⇒ Object
10
11
12
|
# 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) ⇒ Object
26
27
28
|
# 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) ⇒ Object
6
7
8
|
# 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) ⇒ Object
18
19
20
|
# 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
|