Skip to content

Instantly share code, notes, and snippets.

@ejhayes
Created September 28, 2016 00:11
Show Gist options
  • Save ejhayes/b584ed8f3cd4ab01b5fe5b5da0203a6e to your computer and use it in GitHub Desktop.
Save ejhayes/b584ed8f3cd4ab01b5fe5b5da0203a6e to your computer and use it in GitHub Desktop.
# convert a number to letters only - no size limit
1.to_s.tr("0-9", "A-J")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment