Sha256: 732af4cb0c6efb2a5f97ecac53fdb1715ac79713f68dc577565247a09b6c4489

Contents?: true

Size: 287 Bytes

Versions: 5

Compression:

Stored size: 287 Bytes

Contents

# Multi-item control with numerous possible view styles
class Wx::ListCtrl
  # Make these ruby enumerables so find, find_all, map are available 
  include Enumerable
  # Passes each valid item index into the passed block
  def each
    0.upto(item_count - 1) { | i | yield i }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wxruby-1.9.2-powerpc-darwin8.10.0 lib/wx/classes/listctrl.rb
wxruby-1.9.2-i686-linux lib/wx/classes/listctrl.rb
wxruby-1.9.2-i686-darwin8.8.2 lib/wx/classes/listctrl.rb
wxruby-1.9.2-i386-mswin32 lib/wx/classes/listctrl.rb
wxruby-1.9.2-x86_64-linux lib/wx/classes/listctrl.rb