Skip to content
On this page
class · Ruby 4.0

SyntaxSuggest::RipperErrors

< Ripper 7 instance methods

Capture parse errors from Ripper

Prism returns the errors with their messages, but Ripper does not. To get them we must make a custom subclass.

Example:

Example
puts RipperErrors.new(" def foo").call.errors
# => ["syntax error, unexpected end-of-input, expecting ';' or '\\n'"]

Instance methods 7

Attributes
Read
No documentation available