hi fily -

  while i was answering your post, vincent answered it much better than 
i ever could have.

  the one thing that i would point out, is that it is important to 
remember that by default ruby returns the LAST statement evaluated (this 
can bite you in the arse if you forget!)

 the example you gave could also be written like this (without 
'return'):

def multiply(val1, val2 )
  val1 * val2
end

value = multiply( 10, 20 )
puts value

#=>200

 -j

-- 
Posted via http://www.ruby-forum.com/.