Module: Sinatra::InputHelper

Extended by:
Hexacta
Defined in:
lib/sinatra/helpers/inputs.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

#date_input(option_hash) ⇒ Object



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

def date_input(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/inputs/date".to_sym, locals: option_hash
end

#input(option_hash) ⇒ Object



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

def input(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/inputs/input".to_sym, locals: option_hash
end

#month_input(option_hash) ⇒ Object



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

def month_input(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/inputs/month".to_sym, locals: option_hash
end

#multiple_select_input(option_hash) ⇒ Object



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

def multiple_select_input(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/inputs/multiple_select".to_sym, locals: option_hash
end

#paginator_input(option_hash) ⇒ Object



42
43
44
# File 'lib/sinatra/helpers/inputs.rb', line 42

def paginator_input(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/inputs/paginator".to_sym, locals: option_hash
end

#radio_input(option_hash) ⇒ Object



22
23
24
# File 'lib/sinatra/helpers/inputs.rb', line 22

def radio_input(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/inputs/radio".to_sym, locals: option_hash
end

#range_input(option_hash) ⇒ Object



46
47
48
# File 'lib/sinatra/helpers/inputs.rb', line 46

def range_input(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/inputs/range".to_sym, locals: option_hash
end

#select_input(option_hash) ⇒ Object



26
27
28
# File 'lib/sinatra/helpers/inputs.rb', line 26

def select_input(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/inputs/select".to_sym, locals: option_hash
end

#textarea_input(option_hash) ⇒ Object



30
31
32
# File 'lib/sinatra/helpers/inputs.rb', line 30

def textarea_input(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/inputs/textarea".to_sym, locals: option_hash
end

#tick_input(option_hash) ⇒ Object



34
35
36
# File 'lib/sinatra/helpers/inputs.rb', line 34

def tick_input(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/inputs/tick".to_sym, locals: option_hash
end

#year_input(option_hash) ⇒ Object



38
39
40
# File 'lib/sinatra/helpers/inputs.rb', line 38

def year_input(option_hash)
  slim "#{Hexacta::GEM_FILE_DIR}/inputs/year".to_sym, locals: option_hash
end