Returns the last Finished message received
Enables use of shared session key material in accordance with RFC 5705.
Returns the issuerNameHash of this certificate ID, the hash of the issuer’s distinguished name calculated with the hashAlgorithm.
Returns the issuerKeyHash of this certificate ID, the hash of the issuer’s public key.
Serializes the private key to DER-encoded PKCS #8 format. If called without arguments, unencrypted PKCS #8 PrivateKeyInfo format is used. If called with a cipher name and a password, PKCS #8 EncryptedPrivateKeyInfo format with PBES2 encryption scheme is used.
Serializes the public key to DER-encoded X.509 SubjectPublicKeyInfo format.
Configure the code unit offsets field for this repository for a specific encoding and return self.
Prism
deals with offsets in bytes, while the parser gem deals with offsets in characters. We need to handle this conversion in order to build the parser gem AST.
If the bytesize of the source is the same as the length, then we can just use the offset directly. Otherwise, we build an array where the index is the byte offset and the value is the character offset.
Dispatch a words_sep event that contains the space between the elements of list literals.
foo(bar) ^^^
case foo; when bar; end ^^^^^^^^^^^^^^^^^^^^^^^
if foo then bar else baz end ^^^^^^^^^^^^
false ^^^^^
Visit an individual part of a string-like node.
Visit a string that is expressed using a <<~ heredoc.
super(foo) ^^^^^^^^^^
until foo; bar end ^^^^^^^^^^^^^^^^^
bar until foo ^^^^^^^^^^^^^
Visit a node that represents a number. We need to explicitly handle the unary - operator.