Class: Rlocu::Subsection

Inherits:
Object
  • Object
show all
Defined in:
lib/rlocu/menu.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta_subsection) ⇒ Subsection

Returns a new instance of Subsection.



38
39
40
41
# File 'lib/rlocu/menu.rb', line 38

def initialize(meta_subsection)
  @name = meta_subsection['subsection_name']
  self.contents = meta_subsection['contents']
end

Instance Attribute Details

#contentsObject

Returns the value of attribute contents.



36
37
38
# File 'lib/rlocu/menu.rb', line 36

def contents
  @contents
end

#nameObject

Returns the value of attribute name.



35
36
37
# File 'lib/rlocu/menu.rb', line 35

def name
  @name
end