Class: VR::SimpleComboBoxEntry
- Inherits:
-
Gtk::ComboBoxEntry
- Object
- Gtk::ComboBoxEntry
- VR::SimpleComboBoxEntry
- Defined in:
- lib/SimpleComboBoxEntry.rb
Instance Method Summary collapse
-
#initialize(active_choice, *choices) ⇒ SimpleComboBoxEntry
constructor
A new instance of SimpleComboBoxEntry.
Constructor Details
#initialize(active_choice, *choices) ⇒ SimpleComboBoxEntry
Returns a new instance of SimpleComboBoxEntry.
5 6 7 8 9 10 |
# File 'lib/SimpleComboBoxEntry.rb', line 5 def initialize(active_choice, *choices) super(true) append_text(active_choice) choices.each { |c| append_text(c) if c != active_choice } self.active = 0 end |