module SuperInteraction::Layout
Constants
- FRAMEWORKS
Public Class Methods
framework()
click to toggle source
# File lib/super_interaction/layout.rb, line 11 def self.framework @@framework end
framework=(f)
click to toggle source
# 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()
click to toggle source
# 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