method

ungetc

ruby latest stable - Class: RubyLex::BufferedReader

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

ungetc(ch)
public

No documentation available.

# File lib/rdoc/parsers/parse_rb.rb, line 394
    def ungetc(ch)
      raise "unget past beginning of file" if @offset <= 0
      @offset -= 1
      if @content[@offset] == ?\n
        @newline_pending = false
      end
    end