Sha256: ab398fc7ee43b21a50005ba7196fa64d4ebda92d0bb40ab80e08501aea6493a4

Contents?: true

Size: 341 Bytes

Versions: 23

Compression:

Stored size: 341 Bytes

Contents

# Superclass of a variety of controls that display lists of items (eg
# Choice, ListBox, CheckListBox)
class Wx::ControlWithItems
  # Make these ruby enumerables so find, find_all, map etc are available 
  include Enumerable
  # Passes each valid item index into the passed block
  def each
    0.upto(count - 1) { | i | yield i }
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
wxruby-1.9.7-i386-mswin32 lib/wx/classes/controlwithitems.rb
wxruby-1.9.5-i386-mswin32 lib/wx/classes/controlwithitems.rb
wxruby-1.9.4-i386-mswin32 lib/wx/classes/controlwithitems.rb
wxruby-1.9.3-i386-mswin32 lib/wx/classes/controlwithitems.rb
wxruby-1.9.2-powerpc-darwin8.10.0 lib/wx/classes/controlwithitems.rb
wxruby-1.9.2-i686-linux lib/wx/classes/controlwithitems.rb
wxruby-1.9.2-i686-darwin8.8.2 lib/wx/classes/controlwithitems.rb
wxruby-1.9.2-i386-mswin32 lib/wx/classes/controlwithitems.rb
wxruby-1.9.2-x86_64-linux lib/wx/classes/controlwithitems.rb
wxruby-1.9.3-universal-darwin lib/wx/classes/controlwithitems.rb
wxruby-1.9.3-x86-linux lib/wx/classes/controlwithitems.rb
wxruby-1.9.4-x86_64-linux lib/wx/classes/controlwithitems.rb
wxruby-1.9.4-x86-linux lib/wx/classes/controlwithitems.rb
wxruby-1.9.5-universal-darwin-9 lib/wx/classes/controlwithitems.rb
wxruby-1.9.5-x86-linux lib/wx/classes/controlwithitems.rb
wxruby-1.9.5-x86_64-linux lib/wx/classes/controlwithitems.rb
wxruby-1.9.6-universal-darwin-9 lib/wx/classes/controlwithitems.rb
wxruby-1.9.6-x86-linux lib/wx/classes/controlwithitems.rb
wxruby-1.9.6-x86-mswin32-60 lib/wx/classes/controlwithitems.rb
wxruby-1.9.6-x86-mingw32 lib/wx/classes/controlwithitems.rb