what is “?” in ruby

It denotes a “character”. In ruby 1.8, this was represented by the ascii-code of the character. In Ruby 1.9, it’s a single-character String.

Leave a Comment