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

18 lines
231 B
Ruby

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