Class: Bignum
- Inherits:
-
Object
- Object
- Bignum
- Defined in:
- lib/net/ber.rb
Instance Method Summary collapse
Instance Method Details
#to_ber ⇒ Object
209 210 211 212 213 |
# File 'lib/net/ber.rb', line 209 def to_ber i = [self].pack('w') i.length > 126 and raise Net::BER::BerError.new( "range error in bignum" ) [2, i.length].pack("CC") + i end |