Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
char = 'C'
puts char.ord # 67
puts char.ord + 1 # 68
puts (char.ord + 1).chr #D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment