Module: Cumuliform::Sections Private
- Included in:
- Template
- Defined in:
- lib/cumuliform/sections.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #get_section(name) ⇒ Object private
- #initialize ⇒ Object private
Instance Method Details
#get_section(name) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 |
# File 'lib/cumuliform/sections.rb', line 20 def get_section(name) instance_variable_get(:"@#{name}") end |
#initialize ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 17 18 |
# File 'lib/cumuliform/sections.rb', line 14 def initialize SECTIONS.each do |section_name, _| instance_variable_set(:"@#{section_name}", Section.new(section_name, imports)) end end |