base one to ten by jbb

puts (1..?d).map{|i|i.to_s 1+(i-1)%10rescue"1"*i}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top