Class: Rlocu::SectionText

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(meta_section_text)
  @type = meta_section_text['type']
  @text = meta_section_text['text']
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



59
60
61
# File 'lib/rlocu/menu.rb', line 59

def text
  @text
end

#typeObject

Returns the value of attribute type.



59
60
61
# File 'lib/rlocu/menu.rb', line 59

def type
  @type
end

Instance Method Details

#to_sObject



66
67
68
# File 'lib/rlocu/menu.rb', line 66

def to_s
  @text
end