Class: Wx::ControlWithItems
- Inherits:
-
Object
- Object
- Wx::ControlWithItems
- Includes:
- Enumerable
- Defined in:
- lib/wx/classes/controlwithitems.rb
Overview
Superclass of a variety of controls that display lists of items (eg Choice, ListBox, CheckListBox)
Instance Method Summary collapse
-
#each ⇒ Object
Passes each valid item index into the passed block.
Instance Method Details
#each ⇒ Object
Passes each valid item index into the passed block
7 8 9 |
# File 'lib/wx/classes/controlwithitems.rb', line 7 def each 0.upto(get_count - 1) { | i | yield i } end |