class InnerStateLex
Public Class Methods
new(code)
click to toggle source
Calls superclass method
# File lib/rdoc/parser/ripper_state_lex.rb, line 303 def initialize(code) super(code) end
Public Instance Methods
each(&block)
click to toggle source
# File lib/rdoc/parser/ripper_state_lex.rb, line 311 def each(&block) @callback = block parse end
on_default(event, tok, data)
click to toggle source
# File lib/rdoc/parser/ripper_state_lex.rb, line 307 def on_default(event, tok, data) @callback.call({ :line_no => lineno, :char_no => column, :kind => event, :text => tok, :state => state}) end