[7, 8, 3, 6, 4].sort.reverse.each(&method(:p))
Standard input is empty
8 7 6 4 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!