Class: Integer

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

Overview

Add double dispatch to Integer

Instance Method Summary collapse

Instance Method Details

#to_bnObject

Casts an Integer as an OpenSSL::BN

See ‘man bn` for more info.



41
42
43
# File 'lib/openssl/bn.rb', line 41

def to_bn
  OpenSSL::BN::new(self)
end