Ruby 1.9.2 Reference Manual > All Libraries > Builtin Library > class Integer > ord
ord -> Integer
自身を返します。
10.ord #=> 10 # String#ord ?a.ord #=> 97
[SEE_ALSO] String#ord