Class: Rlocu::Menu::OptionGroup
- Inherits:
-
Object
- Object
- Rlocu::Menu::OptionGroup
- Defined in:
- lib/rlocu/menu.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(option_group_hash) ⇒ OptionGroup
constructor
A new instance of OptionGroup.
Constructor Details
#initialize(option_group_hash) ⇒ OptionGroup
Returns a new instance of OptionGroup.
119 120 121 122 123 |
# File 'lib/rlocu/menu.rb', line 119 def initialize(option_group_hash) @type = option_group_hash['type'] @text = option_group_hash['text'] self. = option_group_hash['options'] end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
118 119 120 |
# File 'lib/rlocu/menu.rb', line 118 def end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
118 119 120 |
# File 'lib/rlocu/menu.rb', line 118 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
118 119 120 |
# File 'lib/rlocu/menu.rb', line 118 def type @type end |