Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Integerクラス > ord
ord -> Integer
自身を返します。
10.ord #=> 10 ?a.ord #=> 97