Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
upto « Statement « Ruby
Ruby
Statement
upto
1.
use the upto iterator, which is what traditional for loops translate into in Ruby.
2.
Use an upto Iterator to reference array element
3.
uses the upto iterator to create a loop similar to a for loop from other languages
4.
use curly braces ({}):
5.
The upto Method and for loop
6.
Example of upto that prints out a times table for 2
7.
do all the times tables from 1 to 12
8.
One date may upto another
9.
Interpolation with upto and array
10.
upto with / without {}