mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
d52cf1013f
Treats: #scan #hex #oct #crypt #ord #sum
6 lines
185 B
Text
6 lines
185 B
Text
Returns the integer ordinal of the first character of +self+:
|
|
|
|
'h'.ord # => 104
|
|
'hello'.ord # => 104
|
|
'тест'.ord # => 1090
|
|
'こんにちは'.ord # => 12371
|