How about some more simple ones like

'Do Re Mi Fa So La Ti ' * 3

[125, 450, 250, 1000, 675].sort.reverse.collect{|e| "$#{e}"}.take(3)

'      hello there  '.strip.center(30, '-')
-- 
Posted via http://www.ruby-forum.com/.