Parses the current JSON
text source and returns the complete data structure as a result. It raises JSON::ParserError
if fail to parse.
Returns the version number of the token info. With compliant servers, this value should be 1
if present. If status is GRANTED or GRANTED_WITH_MODS.
Sets the version number for this Request
. This should be 1
for compliant servers.
Returns the version of this request. 1
is the default value.
Parses a source buffer and returns the AST.
Parses the given Ruby
program read from src
. src
must be a String
or an IO
or a object with a gets method.
Parse the source and return the result.
Parse the given source and translate it into the seattlerb/ruby_parser gem’s Sexp format.
Parse the given source and translate it into the seattlerb/ruby_parser gem’s Sexp format.
The version of this activation request’s specification
The version of the gem for this specification.
Parses the string representation of a distinguished name. Two different forms are supported:
OpenSSL format (X509_NAME_oneline()
) used by #to_s
. For example: /DC=com/DC=example/CN=nobody
OpenSSL format (X509_NAME_print()
) used by #to_s(OpenSSL::X509::Name::COMPAT)
. For example: DC=com, DC=example, CN=nobody
Neither of them is standardized and has quirks and inconsistencies in handling of escaped characters or multi-valued RDNs.
Use of this method is discouraged in new applications. See Name.parse_rfc2253
and to_utf8
for the alternative.
Options for how prism should parse/lex the source.