method

ungetc

ruby latest stable - Class: RDoc::RubyLex::BufferedReader

Method deprecated or moved

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

ungetc(ch)
public

No documentation available.

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