Default options for gem commands for Ruby
packagers.
The options here should be structured as an array of string “gem” command names as keys and a string of the default options as values.
Example:
def self.operating_system_defaults
{ 'install' => '--no-rdoc --no-ri --env-shebang', 'update' => '--no-rdoc --no-ri --env-shebang' }
end
Mirror the Prism.parse_file_comments
API by using the serialization API. This uses native strings instead of Ruby
strings because it allows us to use mmap when it is available.
Mirror the Prism.parse_lex_file
API by using the serialization API.
Mirror the Prism.parse_file_success?
API by using the serialization API.
Mirror the Prism.parse_file_failure?
API by using the serialization API.
SyntaxSuggest.use_prism_parser?
[Private]
Tells us if the prism parser is available for use or if we should fallback to ‘Ripper`
@@foo += bar ^^^^^^^^^^^^
$foo += bar ^^^^^^^^^^^
@foo += bar ^^^^^^^^^^^
foo += bar ^^^^^^^^^^
Generates a valid JSON
document from object obj
and returns the result. If no valid JSON
document can be created this method raises a GeneratorError
exception.
Returns the generator of the group.
See the OpenSSL
documentation for EC_GROUP_get0_generator()
Blocks can have a special set of parameters that automatically expand when given arrays if they have a single required parameter and no other parameters.
Constructs a new source range from the given start and end offsets.
Creates a new parser range, taking prisms byte offsets into account
@@foo, = bar ^^^^^
def foo(**bar); end
^^^^^
def foo(**); end
^^