public Method

ControlWithItems.each() { |i| ... }

Passes each valid item index into the passed block

Source Code

# File wx/classes/controlwithitems.rb, line 7
def each
  0.upto(count - 1) { | i | yield i }
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.