Class: Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/1.8/openssl/bn.rb,
lib/1.9/openssl/bn.rb

Overview

Add double dispatch to Integer

Instance Method Summary collapse

Instance Method Details

#to_bnObject



31
32
33
# File 'lib/1.8/openssl/bn.rb', line 31

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