Class: Rlocu::Menu::SectionText
- Inherits:
-
Object
- Object
- Rlocu::Menu::SectionText
- Defined in:
- lib/rlocu/menu.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(section_text_hash) ⇒ SectionText
constructor
A new instance of SectionText.
- #to_s ⇒ Object
Constructor Details
#initialize(section_text_hash) ⇒ SectionText
Returns a new instance of SectionText.
77 78 79 80 |
# File 'lib/rlocu/menu.rb', line 77 def initialize(section_text_hash) @type = section_text_hash['type'] @text = section_text_hash['text'] end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
76 77 78 |
# File 'lib/rlocu/menu.rb', line 76 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
76 77 78 |
# File 'lib/rlocu/menu.rb', line 76 def type @type end |
Instance Method Details
#to_s ⇒ Object
82 83 84 |
# File 'lib/rlocu/menu.rb', line 82 def to_s @text end |