Class: Rlocu::OptionGroup

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta_option_group) ⇒ OptionGroup

Returns a new instance of OptionGroup.



96
97
98
99
100
# File 'lib/rlocu/menu.rb', line 96

def initialize(meta_option_group)
  @type = meta_option_group['type']
  @text = meta_option_group['text']
  self.options = meta_option_group['options'] 
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



94
95
96
# File 'lib/rlocu/menu.rb', line 94

def options
  @options
end

#textObject

Returns the value of attribute text.



93
94
95
# File 'lib/rlocu/menu.rb', line 93

def text
  @text
end

#typeObject

Returns the value of attribute type.



93
94
95
# File 'lib/rlocu/menu.rb', line 93

def type
  @type
end