Class: Rlocu::SectionText
- Inherits:
-
Object
- Object
- Rlocu::SectionText
- Defined in:
- lib/rlocu/menu.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(meta_section_text) ⇒ SectionText
constructor
A new instance of SectionText.
- #to_s ⇒ Object
Constructor Details
#initialize(meta_section_text) ⇒ SectionText
Returns a new instance of SectionText.
61 62 63 64 |
# File 'lib/rlocu/menu.rb', line 61 def initialize() @type = ['type'] @text = ['text'] end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
59 60 61 |
# File 'lib/rlocu/menu.rb', line 59 def text @text end |
#type ⇒ Object
Returns the value of attribute type.
59 60 61 |
# File 'lib/rlocu/menu.rb', line 59 def type @type end |
Instance Method Details
#to_s ⇒ Object
66 67 68 |
# File 'lib/rlocu/menu.rb', line 66 def to_s @text end |