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)
ext/ripper/lib/ripper/filter.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/ext/ripper/lib/ripper/filter.rb, line 80
def on_default(event, token, data)
data
end
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).