struct

Beryl::Encoding::DistinguishedEncodingRules::ObjectIdentifier

Inherits Struct < Value < Object

An object identifier, kept in its encoded form so comparisons and hashing are byte comparisons.

Constructors

new(encoded : Bytes)
Source
parse(dotted : String) : ObjectIdentifier

Builds an identifier from dotted text such as "1.2.840.113549.1.1.11". For constants written in the source, not for untrusted input.

Source

Instance methods

==(other : ObjectIdentifier) : Bool
Source
encoded
Source
hash(hasher)

See Object#hash(hasher)

Source
to_s(io : IO) : Nil

The dotted form, for messages and logs.

Source