class Mail::Multibyte::Chars

def ord

Mail::Multibyte.mb_chars('こんにちは').ord # => 12371
Example:

Returns the codepoint of the first character in the string.
def ord
  Unicode.u_unpack(@wrapped_string)[0]
end