Class: Rlocu::Menu::Subsection
- Inherits:
-
Object
- Object
- Rlocu::Menu::Subsection
- Defined in:
- lib/rlocu/menu.rb
Instance Attribute Summary collapse
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#subsection_name ⇒ Object
readonly
Returns the value of attribute subsection_name.
Instance Method Summary collapse
-
#initialize(subsection_hash) ⇒ Subsection
constructor
A new instance of Subsection.
Constructor Details
#initialize(subsection_hash) ⇒ Subsection
Returns a new instance of Subsection.
55 56 57 58 |
# File 'lib/rlocu/menu.rb', line 55 def initialize(subsection_hash) @subsection_name = subsection_hash['subsection_name'] self.contents = subsection_hash['contents'] end |
Instance Attribute Details
#contents ⇒ Object
Returns the value of attribute contents.
54 55 56 |
# File 'lib/rlocu/menu.rb', line 54 def contents @contents end |
#subsection_name ⇒ Object (readonly)
Returns the value of attribute subsection_name.
54 55 56 |
# File 'lib/rlocu/menu.rb', line 54 def subsection_name @subsection_name end |