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
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|