We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
respond_to?
1 parent f917e60 commit f03bcc1Copy full SHA for f03bcc1
src/main/java/org/jruby/ext/openssl/OpenSSL.java
@@ -324,6 +324,7 @@ static SecureRandom getSecureRandomFrom(final ThreadContext context) {
324
// internals
325
326
static IRubyObject to_der_if_possible(final ThreadContext context, IRubyObject obj) {
327
+ if ( obj instanceof RubyString || obj instanceof RubyIO ) return obj;
328
if ( ! obj.respondsTo("to_der")) return obj;
329
return obj.callMethod(context, "to_der");
330
}
0 commit comments