Sha256: deb662e33d5eb2bb42c9813ddeef40af0f5b98a865b061967181c2b5c2e59ffc
Contents?: true
Size: 345 Bytes
Versions: 37
Compression:
Stored size: 345 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(get_count - 1) { | i | yield i } end end
Version data entries
37 entries across 37 versions & 4 rubygems