Skip to content

Instantly share code, notes, and snippets.

@sixtyfive
Created July 6, 2020 08:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sixtyfive/a387166093e56d9c7613a8a2c5bdbeaf to your computer and use it in GitHub Desktop.
Save sixtyfive/a387166093e56d9c7613a8a2c5bdbeaf to your computer and use it in GitHub Desktop.
def colprint(aofas)
s=""; aofas.each{|i,c| s<<i; s<<(' '*(c-i.size+1)) if c>=i.size}; s
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment