Returns the integer ordinal of the first character of +self+:

  'h'.ord         # => 104
  'hello'.ord     # => 104
  'こんにちは'.ord  # => 12371

Related: see {Converting to Non-String}[rdoc-ref:String@Converting+to+Non--5CString].
