Class: RASN2::Wrapper::ExplicitWrapper
- Inherits:
-
Types::Base
- Object
- Types::Base
- RASN2::Wrapper::ExplicitWrapper
- Defined in:
- lib/rasn2/wrapper.rb
Overview
Constant Summary collapse
- ID =
not used
0- ASN1_PC =
not constructed
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, #model, #name, #options
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Types::Base
#==, #asn1_class_to_s, #attributes, #bin2hex, #build, #check_id, #colorize, #common_inspect, constrained?, #constructed?, #der2name, #der_to_value, #do_parse, #do_parse_explicit, #do_parse_explicit_with_tracing, #do_parse_with_tracing, #encode_identifier_octets, #encode_size, encoded_type, #explicit?, #explicit_type, #find_type, #get_data, #get_length, #id, #id2octets, #id_value, #implicit?, #indent, #initialize, #initialize_copy, #inspect, #msg_type, #optional?, parse, #parse!, #pc_bit, #primitive?, #private?, #raise_id_error, #raise_on_indefinite_length, #self2name, #set_class, #set_default, #set_optional, #set_tag, #set_value, #specific_initializer, start_tracing, stop_tracing, #tag_id_to_integer, #tagged?, #to_der, #trace, #trace_data, #trace_real, #tracer, #type, #universal?, #unpack, #unsigned_to_chained_octets, #value, #value=, #value?, #value_size, #void_value
Methods included from Helpers::Colorize
#begin_colorizer, #brace_surround, #colorize, #colorize_attribute, #colorize_bool, #colorize_class, #colorize_default, #colorize_enum, #colorize_id, #colorize_name, #colorize_nil, #colorize_value, #colorizer, #colorizer=, #end_colorizer, #int_with_hex, #length_specifier, #parens_hex
Constructor Details
This class inherits a constructor from RASN2::Types::Base
Class Method Details
.type ⇒ Object
42 43 44 |
# File 'lib/rasn2/wrapper.rb', line 42 def self.type '' end |
Instance Method Details
#can_build? ⇒ Boolean
48 49 50 51 52 53 |
# File 'lib/rasn2/wrapper.rb', line 48 def can_build? ok = super return ok unless optional? ok && @value.can_build? end |