Ruby方法

类似于其他语言,方法/函数 是用来组织代码的良好方案

定义简单的方法
def hello
  print "Hello, Ruby.\n"
end

hello()