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
Array Each « Array « Ruby
Ruby
Array
Array Each
1.
If you have a collection, such as an array or a range, you can also use the Ruby each iterator to create a loop.
2.
each method goes through each element of the array and passes it as a parameter to the code block you supply.
3.
Identify the Array and Hash of Customers