Module: MotionPrime::ScreenSectionsMixin::ClassMethods

Defined in:
motion-prime/screens/_sections_mixin.rb

Instance Method Summary collapse

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, options = {})
  self._section_options ||= {}
  self._section_options[name.to_sym] = options

  define_method name do
    @sections[name]
  end
end

#section_optionsObject



102
103
104
# File 'motion-prime/screens/_sections_mixin.rb', line 102

def section_options
  _section_options || {}
end

#sections_wrapperObject



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