U:RDoc::AnyMethod[iI"ungetc:ETI"IO#ungetc;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"JPushes back one character (passed as a parameter) onto ios, ;TI"Wsuch that a subsequent buffered character read will return it. Only one character ;TI"Emay be pushed back before a subsequent read operation (that is, ;TI"Xyou will be able to read only the last of several characters that have been pushed ;TI"Rback). Has no effect with unbuffered reads (such as IO#sysread
).;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"5f = File.new("testfile") #=> #
;TI"(c = f.getc #=> "8"
;TI"(f.ungetc(c) #=> nil
;TI"'f.getc #=> "8";T:@format0:
@fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"!ios.ungetc(string) -> nil
;T0[ I" (p1);T@FI"IO;TcRDoc::NormalClass00