box-o-sand/round0/mydefs.rb

28 lines
324 B
Ruby
Raw Normal View History

2009-06-12 01:56:55 +00:00
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