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

Ripper::Filter#on_default

on_default(event, token, data)

This method is called when some event handler is undefined. event is :on_XXX, token is the scanned token, and data is a data accumulator.

The return value of this method is passed to the next event handler (as of Enumerable#inject).

See also #lineno #parse #filename #state also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0