Skip to content
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 3.4 · 3.3 · 3.2