Class: RASN1::Wrapper::ExplicitWrapper

Inherits:
Types::Base show all
Defined in:
lib/rasn1/wrapper.rb

Overview

Since:

  • 0.12.0

Constant Summary collapse

ID =

not used

Since:

  • 0.12.0

0
ASN1_PC =

not constructed

Since:

  • 0.12.0

0

Constants inherited from Types::Base

Types::Base::CLASSES, Types::Base::CLASS_MASK, Types::Base::INDEFINITE_LENGTH, Types::Base::MULTI_OCTETS_ID

Instance Attribute Summary

Attributes inherited from Types::Base

#asn1_class, #default, #name, #options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Types::Base

#==, constrained?, #constructed?, #do_parse_explicit_with_tracing, #do_parse_with_tracing, encoded_type, #explicit?, #id, #implicit?, #initialize, #initialize_copy, #inspect, #optional?, parse, #parse!, #primitive?, #specific_initializer, start_tracing, stop_tracing, #tagged?, #to_der, #trace, #type, #value, #value=, #value?, #value_size, #void_value

Constructor Details

This class inherits a constructor from RASN1::Types::Base

Class Method Details

.typeObject

Since:

  • 0.12.0



30
31
32
# File 'lib/rasn1/wrapper.rb', line 30

def self.type
  ''
end

Instance Method Details

#can_build?Boolean

Returns:

  • (Boolean)

See Also:

Since:

  • 0.12.0



36
37
38
39
40
41
# File 'lib/rasn1/wrapper.rb', line 36

def can_build?
  ok = super
  return ok unless optional?

  ok && @value.can_build?
end