A question mark followed by a character returns an integer matching the position
of that character in the ASCII table, a standard for representing characters as values.
for example, puts ?x => 120 .
this String Expressions will only work with version ruby-1.8.7.or lower.
with version 1.9 or higher… that string expressing will give another answer on the example; puts ?x… namely => “x”.
i have installed Ruby 1.8 and Ruby 2.3.
is there someone who can tell me, how this is possible…?
maybe there is another string expression for the example i give…?
please let me know.