Class: RASN1::Types::Integer
- Defined in:
- lib/rasn1/types/integer.rb
Overview
ASN.1 Integer
Direct Known Subclasses
Constant Summary collapse
- TAG =
0x02
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?, #explicit?, #implicit?, #initialize, #initialize_copy, #inspect, #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
#to_i ⇒ Integer
10 11 12 |
# File 'lib/rasn1/types/integer.rb', line 10 def to_i @value || @default || 0 end |