Class: RDoc::Parser::RipperStateLex::InnerStateLex

Inherits:
Ripper::Filter
  • Object
show all
Defined in:
lib/rdoc/parser/ripper_state_lex.rb

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ InnerStateLex

Returns a new instance of InnerStateLex.



18
19
20
# File 'lib/rdoc/parser/ripper_state_lex.rb', line 18

def initialize(code)
  super(code)
end

Instance Method Details

#on_default(event, tok, data) ⇒ Object



22
23
24
# File 'lib/rdoc/parser/ripper_state_lex.rb', line 22

def on_default(event, tok, data)
  data << Token.new(lineno, column, event, tok, state)
end