You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
324 B
28 lines
324 B
16 years ago
|
def hello()
|
||
|
puts 'Hello!'
|
||
|
end
|
||
|
|
||
|
|
||
|
def hello_to(name)
|
||
|
puts 'Hello thar ' + name.to_s
|
||
|
end
|
||
|
|
||
|
|
||
|
def hello_again_to name
|
||
|
puts 'Why hello again ' + name.to_s
|
||
|
end
|
||
|
|
||
|
|
||
|
def main()
|
||
|
puts 'your name be? '
|
||
|
name = gets().chomp()
|
||
|
hello()
|
||
|
hello_to(name)
|
||
|
hello_again_to(name)
|
||
|
end
|
||
|
|
||
|
|
||
|
if __FILE__ == $0
|
||
|
main()
|
||
|
end
|