Method: RDoc::Markup::Parser#unget

Defined in:
lib/rdoc/markup/parser.rb

#ungetObject

Returns the current token to the token stream

Raises:



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