Class: OpenSSL::BN

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ BN

Returns a new instance of BN.



10
11
12
13
14
15
16
17
18
# File 'lib/hrr_rb_ssh/compat/ruby/openssl/bn.rb', line 10

def initialize *args
  args[0] = case args[0]
            when OpenSSL::BN, Fixnum, Bignum
              args[0].to_s
            else
              args[0]
            end
  __initialize__ *args
end

Instance Method Details

#__initialize__Object



8
# File 'lib/hrr_rb_ssh/compat/ruby/openssl/bn.rb', line 8

alias_method :__initialize__, :initialize