Skip to content
instance method

StringIO#ungetc

(::String arg0) -> nil
ungetc(character) → nil

Pushes back (“unshifts”) a character or integer onto the stream; see Character IO.

See also #ungetbyte #write #tty? also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0