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.



36
37
38
# File 'lib/openssl/bn.rb', line 36

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