Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
opt
/
ruby-2.7
/
usr
/
share
/
ri
/
2.7.0
/
system
/
IO
/
//proc/thread-self/root/proc/thread-self/root/opt/ruby-2.7/usr/share/ri/2.7.0/system/IO/ungetc-i.ri
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 <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