Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::X509::Name#<=>

name <=> other → -1 | 0 | 1 | nil

Alias of #cmp

Compares this Name with other and returns 0 if they are the same and -1 or +1 if they are greater or less than each other respectively. Returns nil if they are not comparable (i.e. different types).

See also #cmp .parse_rfc2253 #add_entry .parse_openssl also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0