class RASN1::Types::Null
ASN.1 Null
@author Sylvain Daubert
Constants
- ID
Null
id value
Public Instance Methods
inspect(level=0)
click to toggle source
@return [String]
# File lib/rasn1/types/null.rb, line 12 def inspect(level=0) str = common_inspect(level)[0..-2] # remove terminal ':' str << ' OPTIONAL' if optional? str end
Private Instance Methods
der_to_value(der, ber: false)
click to toggle source
# File lib/rasn1/types/null.rb, line 24 def der_to_value(der, ber: false) raise ASN1Error, 'NULL should not have content!' if der.length.positive? @value = nil end
value_to_der()
click to toggle source
# File lib/rasn1/types/null.rb, line 20 def value_to_der '' end