Lines Matching refs:event
36 # This method is valid only in event handlers.
43 # This method is valid only in event handlers.
49 # +init+ is a data accumulator and is passed to the next event handler (as
53 @__lexer.lex.each do |pos, event, tok|
55 data = if respond_to?(event, true)
56 then __send__(event, tok, data)
57 else on_default(event, tok, data)
65 # This method is called when some event handler is undefined.
66 # +event+ is :on_XXX, +token+ is the scanned token, and +data+ is a data
69 # The return value of this method is passed to the next event handler (as
71 def on_default(event, token, data)