Freitag, 14. Dezember 2012

Poor man's ASCII table

If you don't have your ASCII table at hand:

 (0..16).each do |i|
   vals = (i*8 .. i*8 + 7)
   puts (i*8).to_s + " " + vals.map {|i| i.chr}.join(" ") + "\n"
 end

Keine Kommentare:

Kommentar veröffentlichen