On Tue, May 24, 2011 at 7:59 PM, I=F1aki Baz Castillo <ibc / aliax.net> wrote=
:
>... sprintf(" =A0%-20s %20s", "#{key.to_s}:", value.to_s)

for simple formatting/justification, i just use the just methods since
they are easier (for my brain) to remember.

eg,

h.each do |k,v|
  puts k.to_s.ljust(20) + v.to_s.rjust(20)
end

kind regards -botp