Method: OpenSSL::PKey::RSA.new

Defined in:
lib/openssl/pkey.rb

.new(*args, &blk) ⇒ Object

Handle RSA.new(size, exponent) form here; new(str) and new() forms are handled by #initialize



352
353
354
355
356
357
358
# File 'lib/openssl/pkey.rb', line 352

def new(*args, &blk) # :nodoc:
  if args[0].is_a?(Integer)
    generate(*args, &blk)
  else
    super
  end
end