def repeat arg
  arg
end

or if you want a copy of the array and not the original

def repeat arg
  arg.dup
end

-- 
Posted via http://www.ruby-forum.com/.