Module: MotionPrime::ScreenSectionsMixin::ClassMethods
- Defined in:
- motion-prime/screens/_sections_mixin.rb
Instance Method Summary collapse
- #section(name, options = {}) ⇒ Object
- #section_options ⇒ Object
- #sections_wrapper ⇒ Object
- #set_sections_wrapper(value) ⇒ Object
Instance Method Details
#section(name, options = {}) ⇒ Object
106 107 108 109 110 111 112 113 |
# File 'motion-prime/screens/_sections_mixin.rb', line 106 def section(name, = {}) self. ||= {} self.[name.to_sym] = define_method name do @sections[name] end end |
#section_options ⇒ Object
102 103 104 |
# File 'motion-prime/screens/_sections_mixin.rb', line 102 def || {} end |
#sections_wrapper ⇒ Object
94 95 96 |
# File 'motion-prime/screens/_sections_mixin.rb', line 94 def sections_wrapper @sections_wrapper end |
#set_sections_wrapper(value) ⇒ Object
98 99 100 |
# File 'motion-prime/screens/_sections_mixin.rb', line 98 def set_sections_wrapper(value) @sections_wrapper = value end |