class Rlocu2::Menu::Section

Attributes

section_name[RW]
subsections[RW]

Public Class Methods

new(section_hash) click to toggle source
# File lib/rlocu2/objects.rb, line 128
def initialize(section_hash)
  @section_name = section_hash['section_name']
  self.subsections = section_hash['subsections']
end

Public Instance Methods

subsections=(subsections_list) click to toggle source
# File lib/rlocu2/objects.rb, line 133
def subsections=(subsections_list)
  @subsections = []
  subsections_list.each { |subsection| @subsections << Rlocu2::Menu::Subsection.new(subsection) } unless subsections_list.nil?
end