Method: Bio::FlatFile::BufferedInputStream#ungetc
- Defined in:
- lib/bio/io/flatfile/buffer.rb
#ungetc(c) ⇒ Object
Pushes back one character into the internal buffer. Unlike IO#getc, it can be called more than one time.
280 281 282 283 |
# File 'lib/bio/io/flatfile/buffer.rb', line 280 def ungetc(c) @buffer = sprintf("%c", c) + @buffer nil end |