Class: Rlocu::Menu::Section
- Inherits:
-
Object
- Object
- Rlocu::Menu::Section
- Defined in:
- lib/rlocu/menu.rb
Instance Attribute Summary collapse
-
#section_name ⇒ Object
readonly
Returns the value of attribute section_name.
-
#subsections ⇒ Object
Returns the value of attribute subsections.
Instance Method Summary collapse
-
#initialize(section_hash) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(section_hash) ⇒ Section
Returns a new instance of Section.
42 43 44 45 |
# File 'lib/rlocu/menu.rb', line 42 def initialize(section_hash) @section_name = section_hash['section_name'] self.subsections = section_hash['subsections'] end |
Instance Attribute Details
#section_name ⇒ Object (readonly)
Returns the value of attribute section_name.
41 42 43 |
# File 'lib/rlocu/menu.rb', line 41 def section_name @section_name end |
#subsections ⇒ Object
Returns the value of attribute subsections.
41 42 43 |
# File 'lib/rlocu/menu.rb', line 41 def subsections @subsections end |