Method: Parser::Base#reset
- Defined in:
- lib/parser/base.rb
permalink #reset ⇒ Object
Resets the state of the parser.
167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/parser/base.rb', line 167 def reset @source_buffer = nil @lexer.reset @static_env.reset @context.reset @current_arg_stack.reset @pattern_variables.reset @pattern_hash_keys.reset self end |