Ripper
doesn’t include the rest of the token in the event, so we need to trim it down to just the content on the first line when comparing.
A directive in the pack template language.
A source that is represented by a file path.
A field that represents the file path.
A field representing the start and end byte offsets.
A field representing the start and end code unit offsets.
This class provides a compatibility layer between prism and Ripper
. It functions by parsing the entire tree first and then walking it and executing each of the Ripper
callbacks as it goes. To use this class, you treat ‘Prism::Translation::Ripper` effectively as you would treat the `Ripper` class.
Note that this class will serve the most common use cases, but Ripper’s API is extensive and undocumented. It relies on reporting the state of the parser at any given time. We do our best to replicate that here, but because it is a different architecture it is not possible to perfectly replicate the behavior of Ripper
.
The main known difference is that we may omit dispatching some events in some cases. This impacts the following events:
on_assign_error
on_comma
on_ignored_nl
on_ignored_sp
on_kw
on_label_end
on_lbrace
on_lbracket
on_lparen
on_nl
on_op
on_operator_ambiguous
on_rbrace
on_rbracket
on_rparen
on_semicolon
on_sp
on_symbeg
on_tstring_beg
on_tstring_end
Indicates that the DNS
response was unable to be decoded.
Indicates that the DNS
request was unable to be encoded.
A DNS
query abstract class.
Installs RubyGems itself. This command is ordinarily only available from a RubyGems checkout or tarball.