July 2011
Intermediate to advanced
400 pages
8h 46m
English
You must place the opening block delimiter on the same line as the method with which it is associated.
For example, these are okay:
3.times do |i|
puts( i )
end
3.times { |i|
puts( i )
}But these contain syntax errors:
3.times
do |i|
puts( i )
end
3.times
{ |i|
puts( i )
}Read now
Unlock full access