Build the parser gem tokens from the prism tokens.
Visit the string content of a particular node. This method is used to split into the various token types.
Returns the full name of this Gem
(see ‘Gem::BasicSpecification#full_name`). Information about where the gem is installed is also included if not installed in the default GEM_HOME.
Suggests gems based on the supplied gem_name
. Returns an array of alternative gem names.
Returns true if the document is valid with all lines removed. By default it checks all blocks in present in the frontier array, but can be used for arbitrary arrays of codeblocks as well
See the OpenSSL
documentation for EVP_PKEY_new_raw_private_key()
Add local/remote options to the command line parser.
Extract platform given on the command line
Returns whether RDoc
defines its own install hooks through a RubyGems plugin. This and whatever is guarded by it can be removed once no supported Ruby
ships with RDoc
older than 6.9.0.
Tells ‘scan_while` to look for mismatched keyword/end-s
When scanning up, if we see more keywords then end-s it will stop. This might happen when scanning outside of a method body. the first scan line up would be a keyword and this setting would trigger a stop.
When scanning down, stop if there are more end-s than keywords.
Quietly ensure the Gem
directory dir
contains all the proper subdirectories for handling default gems. If we can’t create a directory due to a permission problem, then we will silently continue.
If mode
is given, missing directories are created with this mode.
World-writable directories will never be created.
{ a: 1 } ^^^^
A block on a keyword or method call.
Wonky heredoc tab/spaces rules. github.com/ruby/prism/blob/v1.3.0/src/prism.c#L10548-L10558
Wonky heredoc tab/spaces rules. github.com/ruby/prism/blob/v1.3.0/src/prism.c#L16528-L16545
A block on a keyword or method call.
Sets the curve parameters. generator must be an instance of EC::Point
that is on the curve. order and cofactor are integers.
See the OpenSSL
documentation for EC_GROUP_set_generator()