Class: Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/jopenssl18/openssl/bn.rb,
lib/jopenssl19/openssl/bn.rb,
lib/jopenssl21/openssl/bn.rb,
lib/jopenssl22/openssl/bn.rb

Overview

Add double dispatch to Integer

Instance Method Summary collapse

Instance Method Details

#to_bnObject


21
22
23
# File 'lib/jopenssl18/openssl/bn.rb', line 21

def to_bn
  OpenSSL::BN::new(self.to_s(16), 16)
end