Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

SyntaxSuggest::ExplainSyntax#missing

missing

Returns an array of missing elements

For example this:

Example
ExplainSyntax.new(code_lines: lines).missing
# => ["}"]

Would indicate that the source is missing a ‘}` character in the source code

See also #errors #why #call also in 4.0 · 3.4 · 3.3