Exception: ASN1::OutOfBytesError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/asn1-pure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bytes) ⇒ OutOfBytesError

Returns a new instance of OutOfBytesError.



5
6
7
# File 'lib/asn1-pure.rb', line 5

def initialize(bytes)
  @bytes = bytes
end

Instance Attribute Details

#bytesObject (readonly)

Returns the value of attribute bytes.



12
13
14
# File 'lib/asn1-pure.rb', line 12

def bytes
  @bytes
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/asn1-pure.rb', line 9

def to_s
  "Out of bytes to decode: #{@bytes}"
end