代码编辑器:
x
1
# !/usr/bin/ruby -w
2
# -*- encoding:utf-8 -*-
3
# filename: main.rb
4
# author: 简单教程(www.twle.cn)
5
# Copyright © 2015-2065 www.twle.cn. All rights reserved.
6
7
def intro_self
8
return "Hello", "www.twle.cn", "and", "World"
9
end
10
11
greeting = intro_self
12
13
puts greeting