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#cmp

name.cmp(other) → -1 | 0 | 1 | nil

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 #add_entry #eql? #<=> #hash also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0