method

private_key?

v2_2_9 - Show latest stable - Class: OpenSSL::PKey::EC
private_key?()
public

Both public_key? and private_key? may return false at the same time unlike other PKey classes.