Ruby 1.9
irb(main):001:0> ?c => "c"
Ruby 1.8.6
irb(main):001:0> ?c => 99
what does "?" mean ?
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.
String
1.4m articles
1.4m replys
5 comments
57.0k users