Class: RetroIDL::ASN::OCTETSTRING
- Defined in:
- lib/retro_idl/asn/octetstring.rb
Constant Summary collapse
- TAG_CLASS_NUMBER =
4
- TAG_CLASS =
:universal
Instance Attribute Summary
Attributes inherited from BaseType
Instance Method Summary collapse
- #evaluate(value) ⇒ Object
- #evaluateConstraint(value) ⇒ Object
-
#to_s ⇒ String
Convert object to ASN.1 syntax representation.
Methods inherited from BaseType
Constructor Details
This class inherits a constructor from RetroIDL::ASN::BaseType
Instance Method Details
#evaluate(value) ⇒ Object
33 34 35 |
# File 'lib/retro_idl/asn/octetstring.rb', line 33 def evaluate(value) value.kind_of?(String) end |
#evaluateConstraint(value) ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/retro_idl/asn/octetstring.rb', line 37 def evaluateConstraint(value) if evaluate(value) and ( @constraint or @constraint.evaluate(value) ) true else false end end |
#to_s ⇒ String
Convert object to ASN.1 syntax representation
27 28 29 30 31 |
# File 'lib/retro_idl/asn/octetstring.rb', line 27 def to_s return "#{@tag} OCTET STRING #{@constraint}" end |