可选参数值

函数

def say_goodby(message="Goodbye!")
    puts message
end

say_goodby()
# 输出 "Goodbye!"

say_goodby("see you")
# 输出 "see you"