Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
IO
/
//opt/alt/ruby27/share/ri/system/IO/ungetc-i.ri
U:RDoc::AnyMethod[iI"ungetc:ETI"IO#ungetc;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"JPushes back one character (passed as a parameter) onto <em>ios</em>, ;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"Eback). Has no effect with unbuffered reads (such as IO#sysread).;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"5f = File.new("testfile") #=> #<File: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