Simple function
examples/functions/rectangle.rb
def compute_area(width, height) area = width * height return area end a = compute_area(2, 3) puts a b = compute_area(4, 5) puts b
def compute_area(width, height) area = width * height return area end a = compute_area(2, 3) puts a b = compute_area(4, 5) puts b