I came with below solution but I believe that must be nicer one out there ...
array = [ \'first\',\'middle\',\'last\'] index = array.length array.length.t
Ruby is smart
a = [ "a", "b", "c" ] a.reverse_each {|x| print x, " " }