Ruby 2.3.0 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Integerクラス > ord

instance method Integer#ord

ord -> Integer[permalink][rdoc]

自身を返します。


10.ord    #=> 10
# String#ord
?a.ord    #=> 97

[SEE_ALSO] String#ord