SyntaxSuggest.module_for_detailed_message
[Private]
Used to monkeypatch SyntaxError
via Module.prepend
Fetch the end code units offset of the value, for the encoding that was configured on the repository.
foo => bar | baz ^^^^^^^^^
“foo #{bar}” ^^^^^^^^^^^^
foo #{bar}
^^^^^^^^^^^^
def foo(bar = 1); end ^^^^^^^
class << self; end ^^^^^^^^^^^^^^^^^^
ENCODING ^^^^^^^^^^^^
The end offset from the start of the file in code units using the given cache to fetch or calculate the value.
Returns the node id for the given backtrace location.
begin raise rescue => e loc = e.backtrace_locations.first RubyVM::AbstractSyntaxTree.node_id_for_backtrace_location(loc) end # => 0
Returns the string that is used to insert a space before the ‘:’ in JSON
objects.
Sets the string that is used to insert a space before the ‘:’ in JSON
objects.
Returns the curve name (sn).
See the OpenSSL
documentation for EC_GROUP_get_curve_name()
See the OpenSSL
documentation for PEM_write_bio_ECPKParameters()
Visit a heredoc that can be either a string or an xstring.
Read an escape out of the string scanner, given the control and meta flags, and push the unescaped value into the result.
Number of bytes read out of the tar entry
Deprecated in version 3.0. Consider using PKey::PKey#sign_raw
and PKey::PKey#verify_raw
instead.
Serializes the private key to PEM-encoded PKCS #8 format. See private_to_der
for more details.
An unencrypted PEM-encoded key will look like:
-----BEGIN PRIVATE KEY----- [...] -----END PRIVATE KEY-----
An encrypted PEM-encoded key will look like:
-----BEGIN ENCRYPTED PRIVATE KEY----- [...] -----END ENCRYPTED PRIVATE KEY-----
Serializes the public key to PEM-encoded X.509 SubjectPublicKeyInfo format.
A PEM-encoded key will look like:
-----BEGIN PUBLIC KEY----- [...] -----END PUBLIC KEY-----
Since prism resolves num params for us, we don’t need to support this kind of logic here.