Class: Rlocu::Section
- Inherits:
-
Object
- Object
- Rlocu::Section
- Defined in:
- lib/rlocu/menu.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#subsections ⇒ Object
Returns the value of attribute subsections.
Instance Method Summary collapse
-
#initialize(meta_section) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(meta_section) ⇒ Section
Returns a new instance of Section.
22 23 24 25 |
# File 'lib/rlocu/menu.rb', line 22 def initialize() @name = ['section_name'] self.subsections = ['subsections'] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
19 20 21 |
# File 'lib/rlocu/menu.rb', line 19 def name @name end |
#subsections ⇒ Object
Returns the value of attribute subsections.
20 21 22 |
# File 'lib/rlocu/menu.rb', line 20 def subsections @subsections end |