Method: RDoc::Markup::Parser#unget
- Defined in:
- lib/rdoc/markup/parser.rb
#unget ⇒ Object
Returns the current token to the token stream
578 579 580 581 582 583 |
# File 'lib/rdoc/markup/parser.rb', line 578 def unget token = @current_token p :unget => token if @debug raise Error, 'too many #ungets' if token == @tokens.first @tokens.unshift token if token end |