Next | 2.2 Control structures | Prev |
if bool-expr [then] unless bool-expr [then] body body elsif bool-expr [then] else body body else end body expr if bool-expr end expr unless bool-expr
while bool-expr [do] until bool-expr [do] body body end end begin begin body body end while bool-expr end until bool-expr expr while bool-expr expr until bool-expr
for name[,...] in expr [do] expr.each do | name[, name]... | body body end end
Next | Ruby for Perl programmers | Prev |