Mega Code Archive

 
Categories / Ruby / Method
 

Ruby returns the last value calculated, you can omit the return keyword if you want

def adder(operand_one, operand_two)   operand_one + operand_two end