10 Things Every Java Programmer Should Know About Ruby
[
P
rev
|
H
o
me
|
N
ext
]
Yes, all of these are messages …
string.index("x")
Send
:index
(with argument "x")
string.length
Send
:length
(with no argument)
run_status_reports
Send
:run_status_reports
(to
self
)
1 + 2
Send
:+
(with argument 2) to the object 1
array[i]
Send
:[]
(with argument i) to the array
Dayton-Cincinnati .NET Code Camp 2006
Copyright 2005, 2006 by Jim Weirich (All Rights Reserved)