Improvement. Change,
  def space(type,cnt)      case type   when "u"    [ "######",     "#%s#" % "#{cnt}  "[0,4],     "#  #",     "######" ]
to 
  def space(type,cnt)      case type      when "u"        [ "######",          "#%-4s#" % cnt,          "#    #",          "######" ]
Thanks JEGII,T.