Module: SuperInteraction::Layout
- Defined in:
- lib/super_interaction/layout.rb
Constant Summary collapse
- FRAMEWORKS =
[ :bootstrap3, :bootstrap4, :beyond ]
Class Method Summary collapse
Class Method Details
.framework ⇒ Object
11 12 13 |
# File 'lib/super_interaction/layout.rb', line 11 def self.framework @@framework end |
.framework=(f) ⇒ Object
6 7 8 9 |
# File 'lib/super_interaction/layout.rb', line 6 def self.framework=(f) raise "Not support framework: #{f}" if FRAMEWORKS.include?(f) == false @@framework = f end |
.modal_layout ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/super_interaction/layout.rb', line 15 def self.modal_layout case @@framework when :bootstrap3 "modal_bs3.haml" when :bootstrap4 "modal_bs4.haml" when :beyond "modal_beyond.haml" else # Default "modal_bs3.haml" end end |