Mega Code Archive

 
Categories / Ruby / String
 

Character literal

?A   # Character literal for the ASCII character A ?"   # Character literal for the double-quote character ??   # Character literal for the question mark character ?\t      # Character literal for the TAB character ?\C-x    # Character literal for Ctrl-X ?\111    # Literal for character whose encoding is 0111 (octal)