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.



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

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