Method: StringInput#getc

Defined in:
lib/extensions/crypt/crypt/stringio.rb

#getcObject



142
143
144
145
146
147
148
# File 'lib/extensions/crypt/crypt/stringio.rb', line 142

def getc
  stream_check!
  ch = @src[@pos]
  @pos += 1
  @pos += 1 if @pos == @src.size
  ch
end