mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
9 lines
272 B
Plaintext
9 lines
272 B
Plaintext
Returns the integer ordinal of the first character of +self+:
|
|
|
|
'h'.ord # => 104
|
|
'hello'.ord # => 104
|
|
'тест'.ord # => 1090
|
|
'こんにちは'.ord # => 12371
|
|
|
|
Related: see {Converting to Non-String}[rdoc-ref:String@Converting+to+Non--5CString].
|