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
first « Array « Ruby
Ruby
Array
first
1.
Access the First and Last Elements of the Array
2.
If you pass a numeric parameter to first or last, you'll get that number of items from the start or the end of the array