box-o-sand/RubyFun/round0/varargs.rb

18 lines
231 B
Ruby
Raw Normal View History

2009-06-12 02:05:02 +00:00
def shabang(*words)
words.each do |word|
puts word + ' shabanngggg'
end
end
def main()
puts 'what ye have to say?'
words = gets().chomp()
shabang(*words.split())
end
if __FILE__ == $0
main()
end