Class: RASN1::Types::OctetString
- Defined in:
- lib/rasn1/types/octet_string.rb
Overview
Direct Known Subclasses
Constant Summary collapse
- TAG =
0x04
Constants inherited from Primitive
Constants inherited from Base
Base::CLASSES, Base::INDEFINITE_LENGTH, Base::MAX_TAG
Instance Attribute Summary
Attributes inherited from Base
#asn1_class, #default, #name, #value
Instance Method Summary collapse
Methods inherited from Base
#==, #constructed?, encode_type, #explicit?, #implicit?, #initialize, #initialize_copy, #optional?, parse, #parse!, #primitive?, #tag, #tagged?, #to_der, #type, type, #value_size
Constructor Details
This class inherits a constructor from RASN1::Types::Base
Instance Method Details
#inspect(level = 0) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/rasn1/types/octet_string.rb', line 16 def inspect(level=0) str = '' str << ' ' * level if level > 0 str << "#{@name} " unless @name.nil? str << "#{type}: #{value.inspect}" end |