123456789_123456789_123456789_123456789_123456789_

Class: Integer

Relationships & Source Files
Inherits: Object
Defined in: ext/openssl/lib/openssl/bn.rb

Overview

Add double dispatch to Integer

Instance Method Summary

Instance Method Details

#to_bn

Casts an Integer as an ::OpenSSL::BN

See man bn for more info.

[ GitHub ]

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

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