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
As Iterator « Range « Ruby
Ruby
Range
As Iterator
1.
When a range is used as an iterator, each value in the sequence is returned.
2.
each and each_with_index loop with range
3.
each_slice loop with range
4.
each_cons loop with range